in

React should change the documentation to React Hooks

React should change the documentation to React Hooks_628e7db405ace.png

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?

What do you think?

Silver 1

Written by yulica

Leave a Reply

Your email address will not be published.

      If you’re a Tech interviewer .. what’s the quality you search the most in the interviewee ?_628e7dae4b7ff.png

      If you’re a Tech interviewer .. what’s the quality you search the most in the interviewee ?

      Mastering Regular Expression (RegEx) in Javascript_628e7dba62c90.png

      Mastering Regular Expression (RegEx) in Javascript