Closed PaulRBerg closed 1 year ago
There's an eslint plugin preventing this in the current version. It either has to be removed or the rule itself suppressed.
See what this guy recommends doing:
Nevermind, Docusaurus is not compatible with the new JSX transformer:
Starting with React v17, JSX can be used without importing React. No longer do we have to import React in the global scope, or add it as a dependency:
https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports