Do you always use a single useState hook in a React component? 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
)
}