react icon indicating copy to clipboard operation
react copied to clipboard

[React 19]JSX asking that I should declare react at the top of the file

Open jetro4u opened this issue 6 months ago • 3 comments

Summary

Please I have a question. I am using React 19 canary version. It keeps asking that I should declare react at the top of the file and I know that was removed in v18 or so. Is it now a requirement or a bug?

Precisely the error says 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.ts(2686)

jetro4u avatar Aug 15 '24 04:08 jetro4u