react-form-with-constraints
react-form-with-constraints copied to clipboard
Move to new React context API + forwardRef + StrictMode
- New context API: https://reactjs.org/docs/context.html
- Remove prop-types dependency
- forwardRef: https://reactjs.org/docs/forwarding-refs.html
- Strict mode: https://reactjs.org/docs/strict-mode.html
- New component lifecycle methods: https://reactjs.org/docs/react-component.html
- Deprecated methods:
componentWillMount()
,componentWillUpdate()
,componentWillReceiveProps()
- New method:
static getDerivedStateFromProps()
- Deprecated methods:
See also React codemod scripts: https://github.com/reactjs/react-codemod