react-form-with-constraints icon indicating copy to clipboard operation
react-form-with-constraints copied to clipboard

Move to new React context API + forwardRef + StrictMode

Open tkrotoff opened this issue 5 years ago • 0 comments

  • 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()

See also React codemod scripts: https://github.com/reactjs/react-codemod

tkrotoff avatar Jul 20 '18 11:07 tkrotoff