please check the jpg & help me out if you need the code then comment down below
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.