Created
September 7, 2016 10:04
-
-
Save Gekkio/2d6e409d09c1a34a9f03258404f53c56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react' | |
import * as ReactDOM from 'react-dom' | |
ReactDOM.render(null, null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index.ts(4,17): error TS2345: Argument of type 'null' is not assignable to parameter of type 'ReactElement<{}>'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "tsblow", | |
"main": "index.js", | |
"scripts": { | |
"tsc": "tsc" | |
}, | |
"devDependencies": { | |
"@types/react": "^0.14.34", | |
"@types/react-dom": "^0.14.16", | |
"typescript": "^2.0.2" | |
}, | |
"dependencies": { | |
"react": "^15.3.1", | |
"react-dom": "^15.3.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "es5", | |
"strictNullChecks": true, | |
"noImplicitAny": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment