-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 ReactDOM from window/global scope #526
Comments
👍 |
Another 👍 - would allow this library to work for other compile to js languages (eg clojurescript) |
Count that +1 for 👍 - this killed react-select in my build system since I'm not leveraging browserify or requirejs (yet). |
Another 👍, the component is broken on browsers without module loaders. |
👍 |
👍 When react-select is used with Bower and react-rails, it shows |
+1 |
@JedWatson is there a reason not to do this? |
Thanks, I'll give this a go now! |
@twe4ked had to figure out the right way to do it without interfering with the other build processes and target environments. Done now, and I've added an updated usage example in |
Actually I'm using bower so I'm not sure this will fix it for me. I'll have a look now. Edit: Thanks for the explanation :) |
I'll have to publish a new version before it works from bower, but you can test it by downloading the repo directly from npm and dropping the |
Thanks! \o/ |
Has this been released to bower yet? We just tried to plug it in alongside |
@l4u are you including it in your project assets or using |
Thanks! Using |
Thanks! I'm on master too, and it's working well. Any ETA on when anyone can cut a new release? This PR is depending on it: cljsjs/packages#273 But no rush =) |
I've got a feeling this is waiting on #568. |
@JedWatson any chance of a quick beta release, just so we can use this fix on a release? |
@moggyboy The patch has been applied to v1.0.0-beta6 only. If you use 0.9.x, you've to edit that |
@l4u Thank you - I noticed you'd already answered above and so I deleted my comment. |
Facebook's install page (https://github.com/facebook/react#installation) recommends including both React and ReactDOM from CDN.
By using this style we don't need to vendor
ReactDOM
directly. Would it make sense to do this:Here:
https://github.com/JedWatson/react-select/blob/master/dist/react-select.js#L73
Thoughts?
The text was updated successfully, but these errors were encountered: