what is a hook in react simple definition code example
Example: how to use hooks react
const App = () => {
const [students , setStudents] = useState([]);
return (
// put in the jsx code here
)
}
const App = () => {
const [students , setStudents] = useState([]);
return (
// put in the jsx code here
)
}