const [idCourses, setIdCourses] = useState(''); code example
Example: usestate react
function Example(props) {
// You can use Hooks here!
return <div />;
}
function Example(props) {
// You can use Hooks here!
return <div />;
}