UseState

Nadunatugoda
Aug 7, 2024

--

React hooks are the most prominent theory part which can be used for the saving of the components.

Figure 01 — The way how the usestate is been used.
  1. First the useState have to be imported.
  2. const [component,setComponent] = useState(“”); — this it the way how the useState handled.

--

--

Nadunatugoda

University of Moratuwa (undergraduate Faculty of IT )