0

How can I use "useState" in my React App In SoloLearn.

It keeps throwing an error that says "require is not defined", when I import it. And throws "useState isn't defined" otherwise.

22nd Jan 2022, 3:06 PM
Roohan Khan
Roohan Khan - avatar
2 Answers
0
post code if you want to be helped
22nd Jan 2022, 8:31 PM
Marco Ginato
Marco Ginato - avatar
0
Marco Ginato nvm bro, I got it. Thanks for asking
26th Jan 2022, 4:00 PM
Roohan Khan
Roohan Khan - avatar