-
Notifications
You must be signed in to change notification settings - Fork 50.2k
[docs] Use react-standalone #7668
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
Conversation
|
Thanks! I've been meaning to update React to use babel-standalone in the examples. Thanks for working on it 😄 |
| <script src="https://unpkg.com/react@{{site.react_version}}/dist/react.js"></script> | ||
| <script src="https://unpkg.com/react-dom@{{site.react_version}}/dist/react-dom.js"></script> | ||
| <script src="https://unpkg.com/babel-[email protected]/browser.min.js"></script> | ||
| <script src="https://unpkg.com/babel-[email protected]/babel.min.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Babel-standalone is on CDNJS and I've seen better perf with CDNJS compared to unpkg (also it has more users so it's more likely to hit the cache). Maybe use CDNJS instead?
| <script src="bower_components/react/react.js"></script> | ||
| <script src="bower_components/react/react-dom.js"></script> | ||
| <script src="https://unpkg.com/babel-[email protected]/browser.min.js"></script> | ||
| <script src="https://unpkg.com/babel-[email protected]/babel.min.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this one, you might want to use babel-standalone from Bower for consistency. Updating the install command to bower install --save react babel-standalone should work.
|
Instead of using |
|
Looks like this super out of date, and was addressed in #7868 |
I missed that #5497 got closed and babel-standalone supports what I wanted, so we can do this now.