score:21

Accepted answer

change the file extension from .ts to .tsx.

score:0

just take note: when returning react-dom, always use tsx otherwise ts


Related Query

More Query from same tag