PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/examples/typescript-react/readme.md

https://gitlab.com/yawenzou/todomvc
Markdown | 80 lines | 48 code | 32 blank | 0 comment | 0 complexity | e9663d47c61949fc3a77ca9a5d969cf8 MD5 | raw file
  1. # TypeScript & React TodoMVC Example
  2. > 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.
  3. > _[TypeScript - typescriptlang.org](http://typescriptlang.org)_
  4. > 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.
  5. > _[React - facebook.github.io/react](http://facebook.github.io/react)_
  6. ## Learning TypeScript
  7. The [TypeScript website](http://typescriptlang.org) is a great resource for getting started.
  8. Here are some links you may find helpful:
  9. * [Tutorial](http://www.typescriptlang.org/Tutorial)
  10. * [Code Playground](http://www.typescriptlang.org/Playground)
  11. * [Documentation](https://github.com/Microsoft/TypeScript/wiki)
  12. * [Applications built with TypeScript](http://www.typescriptlang.org/Samples)
  13. * [Blog](http://blogs.msdn.com/b/typescript)
  14. * [Source Code](https://github.com/Microsoft/TypeScript)
  15. Articles and guides from the community:
  16. * [Thoughts on TypeScript](http://www.nczonline.net/blog/2012/10/04/thoughts-on-typescript)
  17. * [ScreenCast - Why I Like TypeScript](http://www.leebrimelow.com/why-i-like-typescripts)
  18. Get help from other TypeScript users:
  19. * [TypeScript on StackOverflow](http://stackoverflow.com/questions/tagged/typescript)
  20. * [Forums](https://github.com/Microsoft/TypeScript/issues)
  21. * [TypeScript on Twitter](http://twitter.com/typescriptlang)
  22. _If you have other helpful links to share, or find any of the links above no longer work, please [let us know](https://github.com/tastejs/todomvc/issues)._
  23. ## Learning React
  24. The [React getting started documentation](http://facebook.github.io/react/docs/getting-started.html) is a great way to get started.
  25. Here are some links you may find helpful:
  26. * [Documentation](http://facebook.github.io/react/docs/getting-started.html)
  27. * [API Reference](http://facebook.github.io/react/docs/reference.html)
  28. * [Blog](http://facebook.github.io/react/blog/)
  29. * [React on GitHub](https://github.com/facebook/react)
  30. * [Support](http://facebook.github.io/react/support.html)
  31. Articles and guides from the community:
  32. * [How is Facebook's React JavaScript library](http://www.quora.com/React-JS-Library/How-is-Facebooks-React-JavaScript-library)
  33. * [React: Under the hood](http://www.quora.com/Pete-Hunt/Posts/React-Under-the-Hood)
  34. Get help from other React users:
  35. * [React on StackOverflow](http://stackoverflow.com/questions/tagged/reactjs)
  36. * [Discussion Forum](https://discuss.reactjs.org/)
  37. _If you have other helpful links to share, or find any of the links above no longer work, please [let us know](https://github.com/tastejs/todomvc/issues)._
  38. ## Running
  39. A standalone TypeScript compiler is available on NPM.
  40. npm install typescript
  41. To compile the TypeScript in this project:
  42. # from examples/typescript-react
  43. $ tsc -p js
  44. To be able to run the output JS files in the browser:
  45. # from examples/typescript-react
  46. $ npm install -g browserify
  47. $ browserify js/app.js -o js/bundle.js
  48. To run the app, spin up an HTTP server (e.g. `python -m SimpleHTTPServer`) and visit http://localhost/.../myexample/.