In React 17 and newer, it's no longer necessary to import React in every file that uses JSX, thanks to the new JSX transform. However, to avoid ESLint errors related to this, you can disable the react/react-in-jsx-scope rule in your ESLint configuration by setting it to "off".