React Basic

Mojmul Haque
2 min readMay 15, 2021

--

what is react?

React is a javascript library, where is store vanilla js code stored. Users can easily Build a Ui in a short time and it works very smoothly.

what is JSX?

JSX full meaning javascript XML. JSX is a similar syntax to html5. React give us JSX to build a website easily with react virtual dom.

what is the component?

the component is making to new thing in react. In react, class or functional component makes and it connects each other main components. and code the run & show the output in the browser.

what is the hook?

in the React 16.8 version get new features, that called hooks. hook give developer to work easily, save time and it’s very simple and outstanding.

What is useState?

useState is a react hooks. it gives an array. the array has two properties. The first value is a number/boolean/string/null/undefined. and the second value is a function. The function value is important and it works dynamicaly.

what is useEffect?

when a component needs to data load in components, then use to useEffect and it stores the value in the state, then use to data.

What is fragment?

React fragment has no pattern element. The fragment gives the children without a node. it is useful in react.

React fragments

what are keys?

When a developer map data react rules the parent div use to key property which is unique. because, the react library only changes the value, which is updated and which has a unique id.

react key

--

--

Mojmul Haque
Mojmul Haque

Written by Mojmul Haque

I am a professional fronted developer

No responses yet