Argument of type ‘Element’ is not assignable to parameter of type ‘ReactElement

If you have JSX inside your component or component test file must have .tsx
as your file extension. My code was not compiling as I had the .ts file extension. The moment I renamed it to .tsx/jsx it started working nicely!

Please also note that I was using Typescript, so that’s why I renamed it to .tsx. In case you are using ES6 rename it to .jsx.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)