[docs] react in jsx scope #42169
Labels
docs
Improvements or additions to the documentation
dx
Related to developers' experience
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Summary
See https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports for context. Most of the demos in the docs could be written without the import of React.
This is also reflected in https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md.
Examples
Motivation
In the past, we didn't do the change because there was too many React users <17.0.0. But this seems to mostly OK now:
https://tools-public.mui.com/prod/pages/npmVersion?package=react
Search keywords: optional import react
The text was updated successfully, but these errors were encountered: