Why Should we Choose React?

Academind by Maximilian Schwarzmüller
A free video tutorial from Academind by Maximilian Schwarzmüller
Online Education
4.6 instructor rating • 23 courses • 1,108,242 students

Lecture description

Why React? Why not vanilla JavaScript? What's the advantage of picking a library like React? These answers will get answered in this lecture.

Learn more from the full course

React - The Complete Guide (incl Hooks, React Router, Redux)

Dive in and learn React.js from scratch! Learn Reactjs, Hooks, Redux, React Routing, Animations, Next.js and way more!

40:16:38 of on-demand video • Updated July 2020

  • Build powerful, fast, user-friendly and reactive web apps
  • Provide amazing user experiences by leveraging the power of JavaScript with ease
  • Apply for high-paid jobs or work as a freelancer in one the most-demanded sectors you can find in web dev right now
  • Learn React Hooks & Class-based Components
English So we already got our hands dirty and we saw how we build a React app. Now, this already answers a bit why we might want to use React. There's also more. There are more reasons why we want to use React. React helps us with a problem we'll encounter with normal JavaScript; the UI state becomes difficult to manage. In bigger JavaScript applications, you have to manually target elements in your DOM and if you then change the structure of your HTML code, chances are you will need to change the way you targeted your elements because you used querySelector. Even if you use jQuery, traversing the DOM is easier, but it's still always something you have to keep in mind. If you've got more complex web apps where you dynamically add and remove elements, this quickly can become cumbersome. In our course project, we build an app which is highly dynamic where we are able to build a burger and dynamically add and remove ingredients. If you write this with normal JavaScript code, it's going to be a nightmare. So React helps us by making the whole UI state management a non-issue. It allows us to focus on our business logic instead of keeping our application from exploding. Additionally, React is maintained by a big community. So chances are, the React code is written better than we could have ever written it. So therefore, it's highly-efficient and fast. The bigger your application gets, the more this matters too. Finally, React features a huge ecosystem and an extremely-active community which means that there is a great chance that for a given problem you face, you'll find a solution or an extra package you can add to fix it. All these are reasons why React is awesome and why you definitely should consider it for your next project and why you made the right choice to start with this course.