нельзя использовать в качестве компонента JSX
//Adding @types/react to resolutions in package.json fixed it:
"resolutions": { "@types/react": "17.0.43" }
adens
//Adding @types/react to resolutions in package.json fixed it:
"resolutions": { "@types/react": "17.0.43" }