DEV Community

Discussion on: setState in Reactjs is not a function

Collapse
 
sirseanofloxley profile image
Sean Allin Newell

You still need setPerson. Basically with a functional component using hooks, setState is not defined. Hence your type error.