Typescript error got undefined with useState hook

Possibly:

const [users, setUsers] = useState()

should be:

const [users, setUsers] = useState([])

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top