This repo consists of working code on how to use typescript with react
The write-up to this codebase can be found here [to be updated soon]
- Clone this repo
git clone https://github.com/samuelayo/typescript-react.git
- change directory into the newly cloned repo
cd typescript-react
- install Typescript globally
npm install -g typescript
- Install required packages
npm install
- Instruct npm to use the globally installed Typescript
npm link typescript
- Compile the app
npm run magic
- Run the app
open the
index.html
file in any browser