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 component and similarly all components of a single page are rendered together to form a website.

It’s Use is it allows dynamic pages as each part is a separate component it can be changed of modified easily. Other components don’t get the effect.

There are two types of components :
1.Functional component
2.Class base component

Start learning Functional component:

Functional Component  

Start Learning Class based component:

Class based Component

Leave a comment

Design a site like this with WordPress.com
Get started