wojtekmaj / react-lifecycle-methods-diagram Goto Github PK
View Code? Open in Web Editor NEWInteractive React Lifecycle Methods diagram.
Home Page: https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/
License: MIT License
Interactive React Lifecycle Methods diagram.
Home Page: https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/
License: MIT License
I realize that the phrase "New props" is in the original tweet of Dan Abramov, but "new props" is vague and misleading. Further, it tends to reinforce the misconception mentioned in Brian Vaughn's blog post that the "Updating" swimlane is triggered only when the props "change" or are "different" ( "new" props suggests "different" from "old" props). As the blog post says "these lifecycles are called any time a parent component rerenders, regardless of whether the props are 'different' from before".
Change the wording to say "parent rerenders" or something similar.
I'm not trying to be picky. Dan's diagram and your project have been infinitely helpful in aiding my understanding, yet I've continuously seen beginner, intermediate, and even some advanced React developers tripped up by this confusion. It's a small change, but if you agree, I can help out and do the PR as well.
useTranslation() gets called way too much. Between 350 and 450 times per screen. (it depends on the screen). Because it updates the state in a useEffect(), it gets re-rendered and called a few times.
It should be called way less often (below 35 times per screen).
You can easily see this by placing a console.log() in the main body of the useTranslation() function.
I would love to make a PR for Vietnamese translation since React community in Vietnam are quite big.
Let me know what you think @wojtekmaj
zh-Hans language is not displayed, but in i18n/languages.json There are already. eg: https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/
Currently, in the available languages dropdown Hindi (India) is missing. Add support for the Hindi language.
Update the reference links of official and updated React Documentation.
It was cool to be able to switch (choose) the language
@wojtekmaj
Urdu is currently missing from the available languages dropdown. I have added Urdu language support.
Hello @wojtekmaj ,
I really appreciate this diagram and wanted to thank you for your work.
I just released a <custom-element>
version 🚀
https://github.com/AndyOGo/custom-element-reactions-diagram
https://andyogo.github.io/custom-element-reactions-diagram/
If you are interested, you may link to it:)
Best Regards,
Andy
Something like 'React lifecycle methods'.
When sharing the online version with other people if I don't tell them beforehand what's the link about, it's not so easy to understand what's the diagram about at first glance.
It would be nice to show where the callbacks in hooks are fired.
componentWillReceiveProps() / UNSAFE_componentWillReceiveProps()
static getDerivedStateFromProps()
shouldComponentUpdate()
componentWillUpdate() / UNSAFE_componentWillUpdate()
render()
getSnapshotBeforeUpdate()
componentDidUpdate()
As reported in #2, wording is confusing.
"Show less common lifecycles" means "Show me also those lifecycles which are less common" and NOT "Show me less lifecycles".
For the purposes of bookmarking, it would be really great if the option to "Show less common lifecycles" was in the route.
like
shouldComponentUpdate(nextProps, nextState)
shouldComponentUpdate(nextProps, nextState)
Should we change label getDerivedStateFromProps
to static getDerivedStateFromProps
cause getDerivedStateFromProps
is a static method?
The language drop-down menu shows Argentina flag for Arabic language. The reason is probably because of the value used for Arabic option is AR, which is ISO for Argentina flag emoji.
Suggested solution is to replace the language code to become AE or SA .
Hi @wojtekmaj , I created Japanese translation for the diagram. Could you give me the permission to push to this repo?
Regards.
Macedonian language is missing and all of the docs are leading to the old documentation so I would like to update that.
"Chinese(Taiwan)" is is incorrect. "Chinese(Traditional)" is right! Chinese language, only the difference between simplified Chinese and traditional Chinese, there is no difference between regions.
You should avoid possible political problems.
specifically here:
http://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/
environment: macOS 10.14.5
I saw that the Chinese flag 🇨🇳was specifically filtered out in the code and turned into the earth icon🌏 ,I feel this is very unfriendly,please remove the relevant filtering code immediately.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.