The story
So I'm trying to replicate a Material Design text field, and I think I've managed to do that pretty well, as in this Code Sand...
For further actions, you may consider blocking this person and/or reporting abuse
Post link to full example. Code of the component is ok codesandbox.io/s/goofy-feynman-vl3ny
Do you try to call component as function instead of using as component?
I've edited the post.
Post link to codesandbox (not preview but sandbox itslef) where we can see error.
I solved it. Apparently all I had to do was setting react as an external.
Are you importing React this way:
import React, { useState } from 'react' (correct),
rather than:
import React, { useState } from 'React' (incorrect)?
I am, my bad, I didn't specify: the issue is not when compiling, the issue is when running the code on a page.