willowtreeapps / react-formable

React Forms
25 stars 5 forks source link

Delete errors and warnings #96

Closed kaw2k closed 7 years ago

kaw2k commented 7 years ago

Fixes #94, #93, #95.

While I was in the <Errors /> component, I loosed up the interface from only accepting string to any for errors and additionalErrors. This lets users drop anything they want into this component and use renderError?: (error: any) => React.ReactElement<{}>; to render them appropriately.

Yea, this probably should have been two PRs 😁