Skip to content

Instantly share code, notes, and snippets.

@alihammad-gist
Created September 6, 2015 20:04
Show Gist options
  • Save alihammad-gist/414ecaf379f5a6830b57 to your computer and use it in GitHub Desktop.
Save alihammad-gist/414ecaf379f5a6830b57 to your computer and use it in GitHub Desktop.
var e1: React.ReactElement<any> = React.DOM.li();
var e2: ReactWithAddons.ReactElement<any> = ReactWithAddons.DOM.li();
e1 = e2;
// produces error
// Error:(11, 1) TS2322: Type 'ReactElement<any>' is not assignable to type 'ReactElement<any>'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment