Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
js App update: update typescript and react Jan 3, 2019
node_modules
index.html App update: update typescript and react Jan 3, 2019
package.json
readme.md App update: update typescript and react Jan 3, 2019
serve.js App update: update typescript and react Jan 3, 2019

readme.md

TypeScript & React TodoMVC Example

TypeScript is a language for application-scale JavaScript development. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open Source.

TypeScript - typescriptlang.org

React is a JavaScript library for creating user interfaces. Its core principles are declarative code, efficiency, and flexibility. Simply specify what your component looks like and React will keep it up-to-date when the underlying data changes.

React - facebook.github.io/react

Learning TypeScript

The TypeScript website is a great resource for getting started.

Here are some links you may find helpful:

Articles and guides from the community:

Get help from other TypeScript users:

If you have other helpful links to share, or find any of the links above no longer work, please let us know.

Learning React

The React getting started documentation is a great way to get started.

Here are some links you may find helpful:

Articles and guides from the community:

Get help from other React users:

If you have other helpful links to share, or find any of the links above no longer work, please let us know.

Running

A standalone TypeScript compiler is available on NPM.

npm install typescript

To compile the TypeScript in this project:

# from examples/typescript-react
$ ./node_modules/typescript/bin/tsc -p ./js/

To be able to run the output JS files in the browser:

# from examples/typescript-react
$ ./node_modules/browserify/bin/cmd ./js/app.js -o ./js/bundle.js"

To run the app, spin up an HTTP server (e.g. python -m SimpleHTTPServer) and visit http://localhost/.../myexample/. Alternatively you can run:

# from examples/typescript-react
$ npm run start
You can’t perform that action at this time.