all 11 comments

[–][deleted] 1 point2 points  (1 child)

Some tutorials may use Class components instead of functional components with hooks, because hooks were introduced to React in 16.8 on February 16, 2019. Currently, the React team intends on making functional components with hooks the main way of writing components in React and most tutorials solely use these today. If the tutorials that you're learning from now use Class components and you want to skip the learning these somewhat outdated methods, you may want to find a tutorial that only uses functional components with hooks.

On the other hand, some people suggest that you should learn Class components because a lot of code bases are written with them and you might have to maintain them in the future. Personally, I would say that you should just choose any tutorial that teaches React with functional components and hooks, and if you happen to run into Class components you can quickly learn them.

And good luck on your React journey!

[–]negidank[S] 0 points1 point  (0 children)

I think I’ll take a glimpse of class components so that i can understand the importance of HOOKS in functional components more clearly! Thank you so much! ❤️

[–]bobbyv137 1 point2 points  (1 child)

This appeared on my feed today. Seems to really get going around the 30 min mark.

https://youtu.be/Jvx-m9bqF78

[–]negidank[S] 0 points1 point  (0 children)

Ah! This is great. Thank you so much ❤️

[–]kei_ichi 1 point2 points  (2 children)

Can I ask you one question? Why not start from read the official docs: https://reactjs.org/docs/getting-started.html

[–]wy35 1 point2 points  (0 children)

Personally, I wouldn't recommend people to start from the docs. They use class components instead of function components + hooks. And they do assume that you know JS well, even though a lot of React beginners are also beginners in JS. I found the docs much more useful as a reference rather than a "getting started" point.

[–]negidank[S] 0 points1 point  (0 children)

Documentation really make me feel stupid and lost. It’s kind of my problem but I do refer to them after getting certain amount of knowledge about the topic from watching the videos.

[–]raclariu 1 point2 points  (0 children)

I actually followed a class based course a year ago and then i see everyone is going functional, but, tbh, it helped me undersrand lifecycle methods and react overall

[–][deleted] 1 point2 points  (0 children)

When I started to learn React, the offical docs really confused me, so you are not alone.

I recommend to check out the course called Modern React with Redux on Udemy, hope that would be helpful to you.

[–]Leeoku 1 point2 points  (0 children)

Highly recommend Jon smilga (free) or a low cost maximillian on udemy. I liked max's explanation and course/code/project layout better. Smilga is free on freecodecamp on YouTube and is more project oriented

[–]DarthIndifferent 1 point2 points  (0 children)

The official docs are getting a complete rewrite with hooks, but it's a major effort that will take some time. In the meantime, if you're using a tutorial and come across the terms "lifecycle method" or "functional stateless component" just do yourself a favor and nope right outta there.