DEV Community

Fatemin Supria
Fatemin Supria

Posted on

React Js

1.React Js
It is a JavaScript library. It is the most popular JavaScript Library for front-end development. React use for cross-browser like as web, android, etc.

2.Components
It is a kind of kernel in all react-based applications. The basic structure of a component is a plain JavaScript function.

3.React DOM
React works as a performer to communicate with DOM.

4.React hook
Hook is a special function.Example: useState,useEffect

5.State
A state is a JavaScript object. State modify by some special function.

6.React Fragments
Its use when multiple element rendering in a component which is a single parent. It helps not to use an extra node.

7.Props
React components passed data by props. Props declare inside component calls and use in the same syntax as HTML attributes-props='value'

8.state
Specific data contains in the state. Components change over time. It is a plain JavaScript object.

9.forceUpdate()
When the props state changes, the component will re-render.Then use forceUpdate for re-rendering.
components.forceUpdate(callback)

10.wrap-up
The component receives all the props of the container. Actually The component we want to wrap with the wrapper function. It returns wrapped components.

Top comments (0)