Introduction of React Js :

React Js is a javascript library for frontend developed by Meta . It is used for building interactive user interfaces and single page web-applications with an ease.

In react we create reusable components that are assemble to form an entire application and UI. ****

Hooks in React:

In React, hooks are functions that allow functional components that helps to manage states

UseState in React :

In React, useState is a react hook function that allows us to add state to functional components.

With useState, you can define a state variable and a function to update that variable, and React will automatically re-render the component when the state variable is updated.

useReducer in React :

In React, the useReducer hook is used for managing state in a more complex way than the useState hook. allows you to define a reducer function that can handle more complex state updates, and provides a way to dispatch actions to the reducer to update the state.

Components in React :

React Components are like a functions that basically returns HTML elements. It is a building block of react application and dividing the code into components so that it can be reuse , making it easier to debug as well.

State in React :

State is a build-in react object that is used to store data or information in a component. State of a component can be change overtime and whenever it changes, the component rerenders.

Props in React :