# Disallow React to be incorrectly marked as unused (`react/jsx-uses-react`) πΌπ« This rule is enabled in the βοΈ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs). This rule is _disabled_ in the π `jsx-runtime` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs). JSX expands to a call to `React.createElement`, a file which includes `React` but only uses JSX should consider the `React` variable as used. If you are using the @jsx pragma this rule will mark the designated variable and not the `React` one. This rule has no effect if the `no-unused-vars` rule is not enabled. You can use the [shared settings](/README.md#configuration) to specify a custom pragma. ## Rule Details Examples of **incorrect** code for this rule: ```js var React = require('react'); // nothing to do with React ``` ```jsx /** @jsx Foo */ var React = require('react'); var Hello =