TypeScript 2.0 with react-dnd gives error "JSX element attributes may not be a union type"
no build error with typescript 2.4.2
and used dependencies:
"react": "^15.6.1", "react-dom": "^15.6.1", "react-dnd":"^2.4.0" "@types/react": "^16.0.5", "@types/react-dom": "^15.0.0", "@types/react-dnd":"^2.0.33",
You can install the new typings using:
npm i @types/react-dnd --save-dev
if you already install other typings remove it using:
typings uninstall --save --global react-dnd
After that it should work as expected.