Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs

How to enable {useState} in react on Repl?



I'm having trouble finding out how to import the useState function into my React Repl.

I've used both

"import * as React from 'react'" and
"import * as React, {useState} from 'react'".

Neither seem to allow it to recognize the useState function I use later in the code.

Any help is very greatly appreciated.

2 years ago
You are viewing a single comment. View All