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

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.
主站蜘蛛池模板: 泽州县| 若尔盖县| 吴旗县| 海林市| 元阳县| 齐齐哈尔市| 景泰县| 登封市| 兰州市| 福安市| 宜宾县| 台东县| 枞阳县| 江门市| 奎屯市| 巨鹿县| 岐山县| 白水县| 门头沟区| 沅江市| 岳池县| 红安县| 凤山县| 新兴县| 澄迈县| 鲁山县| 南陵县| 阿拉善左旗| 武平县| 南皮县| 会昌县| 武川县| 青河县| 蓝田县| 安阳市| 喀什市| 恩施市| 鄂尔多斯市| 新竹县| 浏阳市| 黄龙县|