Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 25, 2022 04:41 pm GMT

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.

functional component

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

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To