with-react-form
A small wrapper of react-router parsing the form params from the location.search
Basic usage with react-final-form and redux-thunk-data
// We need to be at pathname /foos/AE
{ const form handleRequestFoo = thisprops const apiPath isCreatedEntity = form if !isCreatedEntity } { const form history = thisprops const modificationUrl = form history } { const payload = action const datum = payload const id: createdId = datum const form history = thisprops const getReadOnlyUrl = form history } { const form handleSubmitFoo = thisprops const apiPath method = form const formSubmitPromise = { } return formSubmitPromise } { const form = thisprops const readOnly = form return <input ...input readOnly=readOnly type="text" /> } { const form = thisprops const readOnly = form return <form onSubmit=handleSubmit> <Field name="title" render=thisrenderField /> readOnly ? <button onClick=thishandleActivateForm type="button" > 'Modify' </button> : <button type="submit"> 'Save' </button> </form> } { const form = thisprops const readOnly = form return <Form initialValues=initialValues onSubmit=thisonFormSubmit render=thisrenderForm /> } FoopropTypes = form: PropTypesshape apiPath: PropTypesstring getReadOnlyUrl: PropTypesfunc isCreatedEntity: PropTypesbool method: PropTypesstring modificationUrl: PropTypesstring readOnly: PropTypesbool isRequired const mapDispatchProps = withRouter withForm Foo