Yes, I was confused because the React Hooks introduction encourages React hooks, but the documentation mostly includes code with class components. Is this because React hooks are new? But, it was 2018 when hooks were introduced, according to Google.
I've only seen companies start to adopt hooks in the last year really, and a lot haven't adopted them at all yet. I reckon we'll start to see the docs catching up to the new "normal" sometime this year 🔮
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes, I was confused because the React Hooks introduction encourages React hooks, but the documentation mostly includes code with class components. Is this because React hooks are new? But, it was 2018 when hooks were introduced, according to Google.
I've only seen companies start to adopt hooks in the last year really, and a lot haven't adopted them at all yet. I reckon we'll start to see the docs catching up to the new "normal" sometime this year 🔮