How I learned React
About me
I am a Freelance Software Developer who is always curious and love building and breaking stuff. I live in the Pokemon World!
Why I wanted to learn React
In my college days, I always wanted to learn about web development. I started off with Vanilla-js projects but something was missing. I searched all over the place and gone through the many resources to find the best revolutionary technology which can give high performance and is much scalable, after trying out some JS frameworks and libraries I found React to be most interesting and fun to do(P.S. Yes, the performance and the ability to build SPA too).
How I approached learning React
The very first thing I did was exploring the docs, as I was pretty much familiar with HTML, CSS, and JS. I went through the basic tic-tac-toe tutorial and then read all the docs on the reactjs.org, after that, I revisited the same tic-tac-toe game which made me clear the concepts which I was unable to understand earlier and revamp the whole code in a different like applying some styling to make it the turns of each player look different. Also, changed some the states, and added flux concept while developing it further.
Challenges I faced
If someone is well aware of JS then half of the problems are solved. The major problem was to get to understand how the components are being mounted in the DOM tree and the flow of data across it. The hooks were also a little tricky at the beginning. And to decide whether to use a functional component or a class component.
Key takeaways
The React community is very large, there are so many awesome blogs out there. Try reading different blogs on the same topics, and also write one! It will make things understand way better.
Tips and advice
Watch some tutorial and code along, after that redo the whole projects by applying different concepts. Like changing a class component to functional component of possible, and like managing states in a different way.
Final thoughts and next steps
Think of an Idea! The idea could be very simple like creating your own portfolio website and make it from scratch.