This examples are intended to create familiarity with the basic principles of Typescript and using Typescript with React.
The examples were created as part of a talk on TypeScript & React for the React Medellin Meetup.
The slides for the presentation used with this examples are in http://bit.ly/tsReact
There are two ways to use the code to play & learn Typescript:
- Using CodeSandbox online editor
- Cloning this repo on your computer
You can visit this repo in CodeSandbox and you'll able to follow the examples without installing any additional software.
You'll need an editor with TypeScript support on your computer, I recommend VisualStudio Code which includes support for TypeScript by default.
In this link you'll find information on how to add support for TypeScript to your editor if you're not using VisualStudio code.
Execute the following command in a terminal to clone the repository and install the dependencies needed for the examples:
git clone https://github.com/elyalvarado/typescript-examples
cd typescript-examples
yarn install