react-lifecycle-methods-diagram
react-lifecycle-methods-diagram copied to clipboard
Implement legacy lifecycle methods
componentWillReceiveProps() / UNSAFE_componentWillReceiveProps()
static getDerivedStateFromProps()
shouldComponentUpdate()
componentWillUpdate() / UNSAFE_componentWillUpdate()
render()
getSnapshotBeforeUpdate()
componentDidUpdate()
https://reactjs.org/docs/react-component.html
Hi @liyuankui, soon-to-be-deprecated methods are not included to discourage people from using them.
would be nice to have an option to show/hide legacy lifecycle methods to help with migration
@liyuankui Implemented legacy API: https://github.com/vivaxy/react-lifecycle-methods-diagram.
View online: https://vivaxy.github.io/react-lifecycle-methods-diagram/dist/index.html
Nice! I'm actually working on a dropdown from which you will be able to choose a React version to see its diagram. @vivaxy would you mind if I merged your work at some point?
@wojtekmaj It's great to have the ability to choose a React version. I'd be appreciated if you could accept my pr.