Installation & Basic Usage

Installation

npm i react-satisfying-forms
# or
yarn add react-satisfying-forms

Basic Usage

Note that this example uses both forms of fields: Factored and Declared‚Äč

<Form onSubmit={yourSubmitHandler} inspect>
<InputField fLabel='longitude' fName='longitude' fRequired/>
<Field fName='latitude'>
{(fieldBidings, fieldStatus) => <input {...fieldBidings} />}
</Field>
<Form.Submit>
{(submit) => { <button onClick={submit}/>}}
</Form.Submit>
</Form>