Skip to content

rename all occurences of React.ReactComponent to React.Component#287

Closed
thheller wants to merge 1 commit intocljsjs:masterfrom
thheller:react-externs-reactcomponent
Closed

rename all occurences of React.ReactComponent to React.Component#287
thheller wants to merge 1 commit intocljsjs:masterfrom
thheller:react-externs-reactcomponent

Conversation

@thheller
Copy link
Copy Markdown
Contributor

@thheller thheller commented Nov 6, 2015

In React the ES6 class is available under React.Component and not React.ReactComponent.

Not 100% sure but I think React.ReactComponent is incorrect. I ran into this when :advanced: compiling something and some React functions got renamed on my components.

om.next ships with a basically empty externs that hides this issue [1], but I think if the name is changed to problem should go away.

Would be nice if someone could verify.

[1] https://github.com/omcljs/om/blob/master/src/main/om/externs.js

@thosmos
Copy link
Copy Markdown
Contributor

thosmos commented Nov 14, 2015

This fix is critical for using cljsjs.react-0.14.0 in production

@martinklepsch
Copy link
Copy Markdown
Member

@thos37 I haven't merged this yet because I was waiting for confirmation that this change is correct, understanding your comment here as confirmation I merged and pushed it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants