1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00
copilot/legacy/spikes/form/redux-form
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00
..
client chore: initial lerna setup 2017-05-25 10:56:50 +01:00
server chore: initial lerna setup 2017-05-25 10:56:50 +01:00
static chore: initial lerna setup 2017-05-25 10:56:50 +01:00
.babelrc chore: initial lerna setup 2017-05-25 10:56:50 +01:00
.eslintignore chore: initial lerna setup 2017-05-25 10:56:50 +01:00
.eslintrc chore: initial lerna setup 2017-05-25 10:56:50 +01:00
.gitignore chore: initial lerna setup 2017-05-25 10:56:50 +01:00
package.json chore: initial lerna setup 2017-05-25 10:56:50 +01:00
readme.md chore: initial lerna setup 2017-05-25 10:56:50 +01:00
webpack.config.js chore: initial lerna setup 2017-05-25 10:56:50 +01:00
yarn.lock chore: initial lerna setup 2017-05-25 10:56:50 +01:00

redux-form

summary

  • form values in redux store
  • clear / retain values in store
  • pre-populate form
  • validation on field / form level
  • multi page form
  • custom form components
  • requires updates to existing ui components as props to custom components are passed in the following format:

"props": { "input": "value": "", "name": "", "onChange": "", "onFocus": "", ... }, "meta": { "valid": "", "error": "", ... }, "anyOtherPropsOnField": "", ... }

  • explore proxying props from Field to custom components from above shape to a flat form as expected by custom components
  • consider creating component that handles logic and display of label and error which would be reused by form components to avoid code duplication for this functionality