Adding Babel

We will continue to create our project in this lesson by adding a dependency that will transpile both the React and TypeScript code to JavaScript.

We'll cover the following...

Installing Babel

As mentioned in the last lesson, our project is going to use Babel to convert our React and TypeScript code to JavaScript. Let’s install Babel with the necessary plugins as a development dependency:

npm install --save-dev @babel/core @babel/preset-env @babel/preset-react @babel/preset-typescript
...