Recently saw some React on the Denver nuggets, some already is lV5 class classmate, release some React related knowledge, mistakes, copying other people’s articles, all don’t authentication, release it, this is not misleading, engaged in the development of the React as a programmer, I think I should stand up and point out mistakes, Learn react knowledge in the correct manner.
React Latest version: 16.13.1
First, trace learning
To learn React, you must read official documents and learn from the source. Then, when we read other people’s articles, we can distinguish “true and false”.
React Official document (latest version by default) : reactjs.org/
Switch to the document address in Simplified Chinese (the latest version by default) : zh-hans.reactjs.org/
How do I view update logs and version documents for different versions?
Looking at the reactjs.org/versions/ page, we can see that documents from V16.8 to V16.13.1 are not updated, only the logs are updated. So we can safely view the documentation in 16.13.1 (the same as the documentation in V16.8)
Previous versions of V15.6, V16.0, V16.1, V16.2, V16.3, v16.4, v16.5, V16.6, and V16.7 have their own documentation and update logs. For detailed updates, you can check the update history log: github.com/facebook/re…
The big change is the addition of Hooks to v16.8, but this does not prevent us from using versions prior to V16.8 in V16. However, v15 and V16 are very different, should pay attention to keep the main version (V16) is the same AS OK;
Second, do not believe the big V conclusion
When we read some big V articles or blogs, we must keep our eyes peeled, skeptical and to verify the correctness of the conclusions, so as to draw our own conclusions, do not trust; A good article is worth learning, but the wrong conclusion is misleading for the novice, which also increases the learning cost of the novice;
Three, hands-on verification
As a programmer, be it official documents or private blog posts, check your conclusions with your own hands.
First, determine the correctness, authenticity and timeliness of the content.
Second, through practice, deepen impression.
Four, to respond to all changes
People say react is a steep learning curve, but that’s not the case. I think you can learn React quickly by reading the official documentation, checking out some of the well-known open source projects on Github, and writing your own code. The React update speed is not very fast. As long as we are familiar with the update log and related updates, there are not many updates. If we have the history of its release logs and details, we will be familiar with it all in the chest, is it not the same to change, then we can learn it much easier. Know your enemy and win every battle.
React official documents
React official Chinese document
React-router official document
redux
Finally: hope to see this article partners in the comments section, leave a good learning method and advice, we learn together.
Important things to say three times:
('official website document must read (at least 3 times) + hand code (at least once)').repeat(3)Copy the code