Posts

Showing posts from May, 2021

Introduction To React JS

Image
  React JS React js is a JavaScript library that we use to create the user interface of single page application. A single page application is a web application that dynamically rewrites the current page with new data without loading a new page. React JS is developed by the Facebook company. The top 3 main companies that use React JS are Facebook, Instagram, and WhatsApp. When developing an app using react js, the app is separated into parts called “component”. Props Props are properties/arguments passed into React component. Props are send into a component as HTML attributes. Ex:- < Person name =" John " />   State A state is an object that stores props values that belongs to the component. State is used to keep props data that can be updated. Ex:-   class Person extends React . Component {   constructor ( props ) {     super ( props );     this . state = { name : "John" };   } We can use...