Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hyphenate-style-name module instead of React internal #16

Merged
merged 1 commit into from
Aug 3, 2015
Merged

Use hyphenate-style-name module instead of React internal #16

merged 1 commit into from
Aug 3, 2015

Conversation

rexxars
Copy link
Contributor

@rexxars rexxars commented Aug 3, 2015

In the latest react betas, Facebook has moved hyphenateStyleName to the fbjs package and is explicitly telling people not to depend on these modules if you're not Facebook. I'm slightly unsure about the best way to go, but for now I've made a super-simple module that does the same as the Facebook one.

This PR adds this module as a dependency and makes the component work on the latest React betas.

I also took the liberty of changing the proptypes require to require('react').PropTypes as this seems less likely to break in the future, should they decide to rearrange the internals.

@yocontra
Copy link
Owner

yocontra commented Aug 3, 2015

Thanks!

yocontra pushed a commit that referenced this pull request Aug 3, 2015
Use `hyphenate-style-name` module instead of React internal
@yocontra yocontra merged commit c8b0544 into yocontra:master Aug 3, 2015
@rexxars rexxars deleted the hyphenate-module branch August 3, 2015 09:43
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.

None yet

2 participants