-3

enter image description here

please check the jpg & help me out if you need the code then comment down below

  • You should add code as text not image – Konrad Sep 18 '22 at 19:37
  • Does this answer your question? ["React must be in scope when using JSX" (react/react-in-jsx-scope with "window.React = React" on index.js)](https://stackoverflow.com/questions/49335781/react-must-be-in-scope-when-using-jsx-react-react-in-jsx-scope-with-window-r) – Henry Woody Oct 24 '22 at 21:24
  • Does this answer your question? ['React' must be in scope when using JSX react/react-in-jsx-scope?](https://stackoverflow.com/questions/42640636/react-must-be-in-scope-when-using-jsx-react-react-in-jsx-scope) – Henry Woody Dec 07 '22 at 19:03

1 Answers1

0

In older react versions import React from 'react had to present in the file when jsx was used.

Either add import React from 'react to the beginning of the file or update react version to 17 or 18

Konrad
  • 21,590
  • 4
  • 28
  • 64