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

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.
主站蜘蛛池模板: 彰武县| 湘潭县| 来凤县| 木里| 浙江省| 鱼台县| 河南省| 邓州市| 海宁市| 高雄市| 简阳市| 德安县| 泗水县| 嘉黎县| 胶州市| 浦东新区| 洞头县| 井研县| 七台河市| 西平县| 东乡族自治县| 当雄县| 北票市| 莒南县| 盐池县| 抚松县| 鄂州市| 湟中县| 开平市| 札达县| 正定县| 盐山县| 广饶县| 英山县| 榆社县| 金华市| 仙居县| 信阳市| 柳州市| 宁德市| 城口县|