Vimarsana.com

React Javascript: A Quick Overview For Starters!

• Source: nextbigwhat.com
Photo by Boitumelo Phetla on Unsplash Introduction to React ⚛️ React is a JavaScript library for building UI components. The ecosystem of React is really immense which eventually makes it one of the best front-end libraries ������ Why React? 1. Reusable components 2. Fast due to virtual DOM 3. Huge ecosystem A typical React app contain many components. They are reusable and can interact with each other. What is a component? – Component as a simple function that you can call with some input and they render some output Components are of two types: 1️⃣ Class based components 2️⃣ functional based components Class-based components are defined using ES6 classes, whereas function components are basic JavaScript functions