You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Fix] jsx-uses-react: mark fragment variables as used
This allows to use the following syntax:
```jsx
import { createElement, Fragment } from 'react';
function Component {
return <></>;
}
```
Or more common in Preact:
```jsx
import { Fragment, h } from 'preact';
function Component {
return <></>;
}
```
The `react.fragment` setting already existed for other rules, but it was
undocumented.
0 commit comments