Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement legacy lifecycle methods #10

Open
liyuankui opened this issue Apr 23, 2018 · 5 comments
Open

Implement legacy lifecycle methods #10

liyuankui opened this issue Apr 23, 2018 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@liyuankui
Copy link

componentWillReceiveProps() / UNSAFE_componentWillReceiveProps()
static getDerivedStateFromProps()
shouldComponentUpdate()
componentWillUpdate() / UNSAFE_componentWillUpdate()
render()
getSnapshotBeforeUpdate()
componentDidUpdate()

https://reactjs.org/docs/react-component.html

@wojtekmaj
Copy link
Owner

Hi @liyuankui, soon-to-be-deprecated methods are not included to discourage people from using them.

@wojtekmaj wojtekmaj self-assigned this Apr 23, 2018
@wojtekmaj wojtekmaj added the question Further information is requested label Apr 23, 2018
@atsu85
Copy link

atsu85 commented Apr 23, 2018

would be nice to have an option to show/hide legacy lifecycle methods to help with migration

@wojtekmaj wojtekmaj changed the title Missing stages? Implement legacy lifecycle methods May 24, 2018
@vivaxy
Copy link

vivaxy commented Jul 3, 2018

@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

@wojtekmaj
Copy link
Owner

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?

@vivaxy
Copy link

vivaxy commented Jul 5, 2018

@wojtekmaj It's great to have the ability to choose a React version. I'd be appreciated if you could accept my pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants