官术网_书友最值得收藏!

What is New in TypeScript 3

In its six years of existence, TypeScript has continued to move forward and mature nicely. Is TypeScript 3 a significant release for React developers? What exactly are the new features that we have to add to our toolkit in TypeScript 3? These questions will be answered in this chapter, starting with the tuple type and how it can now be successfully used with the rest and spread JavaScript syntax, which is very popular in the React community. We'll then move on to the new unknown type and how it can be used as an alternative to the any type. Further more, we'll break TypeScript projects up into smaller projects with the new project references in TypeScript. Finally, we'll go about defining default properties in a strongly-typed React component that has improved in TypeScript 3.

By the end of the chapter, we'll be ready to start learning how you can use TypeScript 3 to build frontends with React. In this chapter, we'll cover the following topics:

  • Tuples
  • The unknown type
  • Project references
  • Default JSX properties
主站蜘蛛池模板: 平果县| 璧山县| 天全县| 隆林| 磴口县| 盘山县| 六盘水市| 溧水县| 邵武市| 玉屏| 安吉县| 西畴县| 阜南县| 渭源县| 突泉县| 宝丰县| 剑河县| 万年县| 屏东市| 肥西县| 郁南县| 定边县| 犍为县| 普宁市| 革吉县| 阳江市| 华蓥市| 靖边县| 荃湾区| 广宗县| 班玛县| 什邡市| 韶关市| 仪陇县| 东阿县| 如皋市| 射阳县| 隆林| 马关县| 沁阳市| 石棉县|