Property 'render' does not exist on type 'typeof __React'
barinbritva opened this issue · 3 comments
barinbritva commented
I cloned repository, changed React version in package.json
, because in version 0.14.x method render moved to ReactDOM:
// ...
"react": "0.13.3",
// ...
Then:
npm install
node node_modules/typescript/bin/tsc
Error:
src/app.tsx(19,11): error TS2339: Property 'render' does not exist on type 'typeof __React'.
DanielRosenwasser commented
I think this sample was created with 0.13.3 in mind, and so the typings used for it make sense at it stands, though we should probably update the sample.
@RyanCavanaugh or @johnnyreilly, if it's not too much trouble, maybe one of you guys can take a look at this when you get the chance.
johnnyreilly commented
Yup - I'm planning to take a look at this
DanielRosenwasser commented
I think this can be closed now. Thanks @johnnyreilly!