sablier-labs / docs

Documentation and guides for Sablier
https://docs.sablier.com
GNU General Public License v3.0
16 stars 7 forks source link

Delete all unused "import React from react" statements #35

Closed PaulRBerg closed 1 year ago

PaulRBerg commented 1 year ago

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

razgraf commented 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.

PaulRBerg commented 1 year ago

See what this guy recommends doing:

https://stackoverflow.com/a/68315971/3873510

PaulRBerg commented 1 year ago

Nevermind, Docusaurus is not compatible with the new JSX transformer:

ReferenceError: React is not defined.