阅读背景:

打字稿中的界面状态和道具反应

来源:互联网 

I'm working on a project that uses typescript as well as react and am new to both. My questions is about interface in typescript and how that relates to props and states. What is actually happening? My application doesnt run at all unless I declare interface props and states, but Im using states through the react constructor function and I've seen examples where all of that information would go into 'interface MyProps' or 'interface MyStates' take this code for exampleI'm working on a project that uses typescript a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: