Unhandled Rejection (TypeError): (0 , _react.useState) is not a function…
Closed this issue · 1 comments
stahlmanDesign commented
Unhandled Rejection (TypeError): (0 , _react.useState) is not a function or its return value is not iterable
I get this error using your example code and my hubspot protalId and formId
useState
was a new feature part of v16.7.0-alpha
v16.7.0 has been released and I am using it. Did useState
change since you last updated your code or am I doing something wrong?
adamsoffer commented
@stahlmanDesign ah yes, this package requires the latest alpha version of react (16.7.0-alpha.2). v16.7.0
doesn't include support for hooks. Try npm install --save react@next
in your app.