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

Technical requirements

In this chapter, we will use the same technologies as in Chapter 1, TypeScript Basics:

  • TypeScript playground: This is a website at https://www.typescriptlang.org/play/, which allows us to play around with and understand the features in TypeScript without installing it.
  • Node.js and npm: TypeScript and React are dependent on these. You can install them from https://nodejs.org/en/download/. If you already have these installed, make sure npm is at least version 5.2. 
  • TypeScript: This can be installed via npm, entering the following command in a terminal:
npm install -g typescript
  • It is important that we are using TypeScript 3 in this chapter. You can check your TypeScript version by using the following command in a terminal:
tsc -v

If you need to upgrade to the latest version, you can run the following command:

npm install -g typescript@latest
  • Visual Studio Code: We'll need an editor to write our React and TypeScript code. This one can be installed from https://code.visualstudio.com/. We will also need the TSLint (by egamma) and Prettier (by Estben Petersen) extensions installed in Visual Studio Code.
All the code snippets in this chapter can be found at  https://github.com/carlrip/LearnReact17WithTypeScript/tree/master/02-WhatsNewInTS3.
主站蜘蛛池模板: 元氏县| 武夷山市| 陇西县| 玛多县| 全南县| 忻城县| 丹棱县| 苏尼特左旗| 高雄县| 东山县| 山东省| 瑞安市| 淳安县| 东山县| 乐平市| 桦南县| 六枝特区| 金川县| 泸州市| 县级市| 丹江口市| 庆元县| 焉耆| 烟台市| 特克斯县| 甘肃省| 高州市| 鸡西市| 台北市| 仪征市| 惠水县| 合山市| 玛曲县| 龙江县| 邓州市| 西乡县| 红河县| 扎鲁特旗| 武汉市| 南皮县| 平南县|