react-redux-simple-form
A simple React / React-Native form library using redux and redux-thunk.
Why?
Most react redux form libraries out there are too over-engineered and over-opinionated for my liking.
That's why I created this — "react-redux-simple-form" is a library for creating abstract redux forms both on React and React-Native.
Any component that has form and name properties and wrapped with the provided higher order component receives additional properties that are used to control the state of the form. Simple as that.
How?
Create your store:
;;; const store = ;
Create a basic input:
;; { return <div> <input onChange= thisprops onBlur= thisprops /> thispropsfielderror !== '' && <div>thispropsfielderror</div> </div> ; } const ConnectedInput = ; ;
And use it:
<ConnectedInput form="myform" name="myinput"/>