Skip to content

Instantly share code, notes, and snippets.

@Gekkio
Created September 7, 2016 10:04
Show Gist options
  • Save Gekkio/2d6e409d09c1a34a9f03258404f53c56 to your computer and use it in GitHub Desktop.
Save Gekkio/2d6e409d09c1a34a9f03258404f53c56 to your computer and use it in GitHub Desktop.
import * as React from 'react'
import * as ReactDOM from 'react-dom'
ReactDOM.render(null, null)
index.ts(4,17): error TS2345: Argument of type 'null' is not assignable to parameter of type 'ReactElement<{}>'.
{
"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"
}
}
{
"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