title: How can I get a full working example with React 0.14 and Typescript 1.6.2 and Rails 4.2
body: <p>Does anyone have a working example of the latest (stable) React, working with latest (stable) Typescript and Rails 4.2?</p>
  
  <p>Using the typescript-rails gem (<a href="https://github.com/typescript-ruby/typescript-rails" rel="nofollow">https://github.com/typescript-ruby/typescript-rails</a>) and Rails 4.2 works just fine via the asset pipeline.</p>
  
  <p>For instance, none of these examples work:
  <a href="http://blog.mgechev.com/2015/07/05/using-jsx-react-with-typescript/" rel="nofollow">http://blog.mgechev.com/2015/07/05/using-jsx-react-with-typescript/</a>
  <a href="http://staxmanade.com/2015/08/playing-with-typescript-and-jsx/" rel="nofollow">http://staxmanade.com/2015/08/playing-with-typescript-and-jsx/</a></p>
  
  <p>The various errors encountered are: (based on which example, and which DefinitelyTyped react.d.ts's you're using from <a href="https://github.com/DefinitelyTyped" rel="nofollow">https://github.com/DefinitelyTyped</a>)</p>
  
  <p>/var/folders/ng/f_1__7m57x9bmprw7lvpz7180000gn/T/typescript-node20151114-27510-1dvq95y.ts(18,1): error TS2304: Cannot find name 'ReactDOM'.</p>