Use TypeScript type in select list option in React?

后端 未结 0 1231
孤独总比滥情好
孤独总比滥情好 2021-01-21 01:08

I\'m trying to add TypeScript types to the following code:

const [selectedDevice, setSelectedDevice] = useState(DesktopOrMobile.desktop);

         


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