3 THINGS YOU NEED TO KNOW When Starting With React
The purpose of this article is to show you 3 things you need to know when starting with ReactJS. If I would have known these 3 things from the very beginning, I would have been much more effective with React a lot sooner and progress a lot faster.
So if you are just starting with ReactJS, or want to learn it, keep reading as I'll give you the tips to get you started quickly and effectively.
Focus on Only React
The second thing is focusing on learning only ReactJS. You need to start by understanding the three main design principles (Declarative Programming, Composition of Components, and Unidirectional Data Flow) that makes React unique, from the very beginning. That's gonna make a huge difference in your learning curve.
Besides that, you don't need any extra 3rd party library or tool to start with React. The React API is pretty small and surprisingly simple. Actually, there are only two methods necessary to build a React application. One for creating React elements, and another one for rendering those elements.
The most simple app you can make only consists of the
index.html file with the React dependencies.
Once again, you don't need to learn and configure any build tools to get you started. You can even use create-react-app to set up your React application by running one command without having to configure anything.
npx create-react-app my-app
Unfortunately, a lot of online resources for beginners includes a bunch of tools, and make learning React more complicated than it is. That's why I've created the Become a React Developer course. It starts from the ground up all the way through becoming a React Developer. You'll learn everything you need to master React steps-by-steps.
Get Your Hands Dirty
There is no better way to learn something new, especially when it comes to learning a new programming language or a new library than building things. I really believe that it is the only way to grasp a concept and make the most out of your time.
You can watch hours of video content on Youtube, but if you don't practice early on, you won't learn anything from it.
Build (a lot of) things and start as early as possible in your learning journey.
This is also valid with learning ReactJS. Just put in the work and you will get better over time. But don't just follow steps-by-steps training materials and reproduce what the instructor is doing. Build React applications by yourself from scratch. You'll learn so much more this way. You can start with something simple and go from there to build more complex applications.
So, practice, practice, and practice!
The purpose of this article was to give you the keys to getting started with ReactJS. By now, you should have an idea about what you should learn and focus on from the very beginning.
The most important points to remember are:
- Focus on only React so you don't get lost with too much to learn at once
- Build things from the very beginning to practice your newly acquired skills
Sometimes when people wait to get really good at one thing, they get stuck and cannot move on. I would suggest changing the tone of the phrase to say, learn until you are good enough to get something done.
Learning is a journey, @getify who is nowadays advocating has spent years, and he is still learning.