Things you need to know Before learning Reactjs | Shudhanshu Patidar
In this article, I’m going to discuss things you should know before you start working with React JS.
When to Use React
React is mostly used for developing Single Page Apps (SPAs). React JS would be a great choice for your project if it deals with many dynamic inputs and includes access permissions.
In React, the code used for developing web applications can also be used for mobile applications. So, you don’t have to spend more time coding the UI for a mobile app. If you’re building both mobile and web apps, then React would be perfect for that.
When Not to Use React
React would not be a good choice for static websites. React JS becomes tough when you need to add many functionalities to your web pages. Also, if you have a really good knowledge of HTML and CSS, then you need to decide whether to spend your time learning React. React can be learned quickly, but this could be a learning curve that might be unnecessary depending on your project.
When you use declarative programming, you can accomplish what you want to do by using less amount of code than imperative programming. So, in React, you just need to describe what the result of the program should be. You don’t have to explain how to get that specific result. React knows how to get the result.
- ES6 classes
- Arrow functions
- Destructuring assignment
- Map and filter
React JS has an effective set of debugging and designing tools that will help you understand your code more easily. React Developer Tools is a popular browser extension for Chrome. By installing it, you will find interesting widgets to inspect your React code, interpret the output, and debug.
With React, you can detect errors at an early stage. Compile-time debugging helps to achieve this, so you won’t find any silent errors during runtime.
Thank you for reading and happy coding!
SOURCE : Medium.com