I am getting this error when using the useState hook. I have this in it\'s basic form, looking at the react docs for a reference, but am still getting this erro
useState
My issue was the following:
I was doing: ReactDOM.render(Example(), app);
ReactDOM.render(Example(), app);
Whereas I should have been doing: ReactDOM.render(, app);
ReactDOM.render(, app);