Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

cannot be used as a jsx component

//Adding @types/react to resolutions in package.json fixed it:

"resolutions": { "@types/react": "17.0.43" }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jsx #component
ADD COMMENT
Topic
Name
7+2 =