Element implicitly has an 'any' type because expression of type 'string' can't be used to index type React Typescript

后端 未结 0 696
不知归路
不知归路 2021-01-31 03:05

I am trying to give a conditional colour to a component in react if the type is like it will be green or dislike it will be red. This would work in javascript but with using typ

相关标签:
回答
  • 消灭零回复
提交回复
热议问题