Technical requirements
The requirements for this chapter are the same as in Chapter 1, Understanding TypeScript. You should have a basic understanding of JavaScript and web technologies. You will once again be using Node and Visual Studio Code (VSCode).
The GitHub repository is again at https://github.com/PacktPublishing/Full-Stack-React-TypeScript-and-Node. Use the code in the Chap2
folder.
Before continuing, let's set up for this chapter:
- Go to your
HandsOnTypeScript
folder and create a new folder calledChap2
. - Open VSCode and go to File | Open, and then open the
Chap2
folder you just created. Then, select View | Terminal and enable the terminal window within your VSCode window. - Type the
npm init
command, as in Chapter 1, Understanding TypeScript, to initialize the project fornpm
, and accept all the defaults. - Type the
npm install typescript
command, as in Chapter 1, Understanding TypeScript, to install TypeScript.
Now we're ready to get...