-
Notifications
You must be signed in to change notification settings - Fork 50.3k
[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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,11 +3,11 @@ require('json') | |
| require('yaml') | ||
| require('open-uri') | ||
|
|
||
| desc "download babel-browser" | ||
| desc "download babel-standalone" | ||
| task :fetch_remotes do | ||
| IO.copy_stream( | ||
| open('https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js'), | ||
| 'js/babel-browser.min.js' | ||
| open('https://unpkg.com/babel-[email protected]/babel.min.js'), | ||
| 'js/babel.min.js' | ||
| ) | ||
| end | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ Diamo un'occhiata ad un esempio davvero semplice. Creiamo un file dal nome `hell | |
| <title>Hello React</title> | ||
| <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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ UIについて、最も基本的なことは、いくつかのデータを表示 | |
| <title>Hello React</title> | ||
| <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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ UI를 가지고 할 수 있는 가장 기초적인 것은 데이터를 표시하 | |
| <title>Hello React</title> | ||
| <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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ Let's look at a really simple example. Create a `hello-react.html` file with the | |
| <title>Hello React</title> | ||
| <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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ next: jsx-in-depth.html | |
| <title>Hello React</title> | ||
| <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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ next: jsx-in-depth-zh-CN.html | |
| <title>Hello React</title> | ||
| <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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ next: jsx-in-depth-zh-TW.html | |
| <title>Hello React</title> | ||
| <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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,7 +99,7 @@ bower install --save react | |
| <title>Hello React!</title> | ||
| <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> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,7 @@ Nella directory principale dello starter kit, crea `helloworld.html` con il segu | |
| <meta charset="UTF-8" /> | ||
| <title>Ciao React!</title> | ||
| <script src="build/react.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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,7 @@ React でのハッキングを始めるにあたり、一番簡単なものと | |
| <meta charset="UTF-8" /> | ||
| <title>Hello React!</title> | ||
| <script src="build/react.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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,7 +59,7 @@ $ browserify -t [ babelify --presets [ react ] ] main.js -o bundle.js | |
| <title>Hello React!</title> | ||
| <script src="build/react.js"></script> | ||
| <script src="build/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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ In the root directory of the starter kit, create a `helloworld.html` with the fo | |
| <title>Hello React!</title> | ||
| <script src="build/react.js"></script> | ||
| <script src="build/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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,7 +76,7 @@ new webpack.DefinePlugin({ | |
| <title>Hello React!</title> | ||
| <script src="build/react.js"></script> | ||
| <script src="build/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> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ Per questo tutorial renderemo il tutto il più semplice possibile. Incluso nel p | |
| <title>React Tutorial</title> | ||
| <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> | ||
| <script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/remarkable.min.js"></script> | ||
| </head> | ||
|
|
@@ -230,7 +230,7 @@ Per prima cosa, aggiungiamo la libreria di terze parti **marked** alla tua appli | |
| <title>React Tutorial</title> | ||
| <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> | ||
| <script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/remarkable.min.js"></script> | ||
| </head> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ next: thinking-in-react-ja-JP.html | |
| <title>React Tutorial</title> | ||
| <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> | ||
| <script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/remarkable.min.js"></script> | ||
|
|
||
|
|
@@ -227,7 +227,7 @@ Markdown はインラインでテキストをフォーマットする簡単な | |
| <title>Hello React</title> | ||
| <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> | ||
| <script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/remarkable.min.js"></script> | ||
| </head> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ next: thinking-in-react-ko-KR.html | |
| <title>React Tutorial</title> | ||
| <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> | ||
| <script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/remarkable.min.js"></script> | ||
| </head> | ||
|
|
@@ -233,7 +233,7 @@ Markdown은 텍스트를 포맷팅하는 간단한 방식입니다. 예를 들 | |
| <title>React Tutorial</title> | ||
| <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> | ||
| <script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/remarkable.min.js"></script> | ||
| </head> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ For this tutorial, we're going to make it as easy as possible. Included in the s | |
| <title>React Tutorial</title> | ||
| <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> | ||
| <script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/remarkable.min.js"></script> | ||
| </head> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ next: thinking-in-react-zh-CN.html | |
| <title>React Tutorial</title> | ||
| <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> | ||
| <script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/remarkable.min.js"></script> | ||
| </head> | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?