how to create a hook in reactjs 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
)
}