Insert a .jsx extension on files that contain JSX

JavaScript pattern

Files containing JSX should have a .jsx extension.


Apply with the Grit CLI
grit apply fix_jsx_file_extension

Handles a basic JSX element

JS
export default function SomeReact() {
  return <p>This is JSX.</p>;
}

Handles a self-closing JSX element

JS
export default () => <ExampleItem code={code} hint={hint} label='Avengers Example' />;