A class based React component is used to manipulate data and create new states and variables. Before we learn more about states and variable data management let’s know the basic structure of a class based component in react. Don’t forget all the components in react start with a capital letter else react treat components as …
Category Archives: React
Functional Components in React
This components are used in case there are no use of states (and variable data to handle). A functional component is not preferred in case of data management is done in the component, Like definind a state which holds name, regno ,phone no, email etc., But it is useful if it is used to perform …
React Components
The first thing to learn in react is components. What are they? Why are they used ? Components are building blocks to react applications. For example consider a home page which contain menu sidebar and footer and post section. Here each part of the page are separate components. Menu is separate component, sidebar is separate …
React Installation
Start by installing Node.js from the following link: https://nodejs.org/en/ Then install visual studio code : https://code.visualstudio.com/ Node.js also install npm along with it so don’t worry about npm installation. in command prompt (CMD) type: node -version and npm -v If you get the version displayed We are all ready to start learning react. open a …