Cannot find namespace 'ctx' error when creating Context with react - typescript

前端 未结 2 1502
死守一世寂寞
死守一世寂寞 2021-01-07 16:38

I\'m working on a project with react using typescript and I\'m having a bad time figuring out why this error is happening, basically, I can\'t use

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-07 17:28

    Please use tsx instead of ts it has some minute differences. tsx obviously allows the usage of jsx tags inside typescript.

提交回复
热议问题