React Hook, Hooks, React.
//Example2.useState() with previousState useState with previous state import React,{useState} from ‘react’ function HooksCounter() { const initialCount=0 const [count,setCount]=useState(initialCount) const incrementByFive=()=> { for(let i=0;i<5;i++) { setCount(prevCount=>prevCount+1) } } return (