An Interest In:
Web News this Week
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
React should change the documentation to React Hooks
React Hooks came out around 4 years ago, and almost any React project made today uses functional components and hooks instead of the class-component model.
If we go to React's documentation a lot of explanation is done using class components, and they don't introduce hooks in the Main Concepts section, don't even mention it in the handling events page.
I think that mixing functional and class components can be misleading and confusing to anyone that wants to learn React as a first JS framework, also frameworks like NextJS made all the documentation using Functional Components.
I'm not saying that people shouldn't learn how to use class components, all the react projects that came out more than 4 years ago use them, but when I learned React some years ago I encounter this issue.
Would you change something about the documentation?
Original Link: https://dev.to/alesbe/react-should-change-the-documentation-to-react-hooks-3pon
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To