@samitouri / QOS-React / commits / 3d60d4cc7d

[Docs] Fix confusing description for the <script>...</script> usage (#9502)

* Fix confusing description for the <script>...</script> usage * Update jsx-in-depth.md * Update reference-react-dom-server.md * Update reference-react-dom.md * Update reference-react.md

chocolateboy committed Apr 26, 2017 at 12:57 UTC 3d60d4cc7d00f194c2e585ec0bea92b19c5605d1
4 files changed +4 -4
docs/docs/jsx-in-depth.md
+1 -1
@@ -71,7 +71,7 @@ function WarningButton() {
71 }
72 ```
73
74 -If you don't use a JavaScript bundler and added React as a script tag, it is already in scope as a `React` global.
74 +If you don't use a JavaScript bundler and loaded React from a `<script>` tag, it is already in scope as the `React` global.
75
76 ### Using Dot Notation for JSX Type
77
docs/docs/reference-react-dom-server.md
+1 -1
@@ -6,7 +6,7 @@ category: Reference
6 permalink: docs/react-dom-server.html
7 ---
8
9 -If you use React as a script tag, these top-level APIs are available on the `ReactDOMServer` global. If you use ES6 with npm, you can write `import ReactDOMServer from 'react-dom/server'`. If you use ES5 with npm, you can write `var ReactDOMServer = require('react-dom/server')`.
9 +If you load React from a `<script>` tag, these top-level APIs are available on the `ReactDOMServer` global. If you use ES6 with npm, you can write `import ReactDOMServer from 'react-dom/server'`. If you use ES5 with npm, you can write `var ReactDOMServer = require('react-dom/server')`.
10
11 ## Overview
12
docs/docs/reference-react-dom.md
+1 -1
@@ -6,7 +6,7 @@ category: Reference
6 permalink: docs/react-dom.html
7 ---
8
9 -If you use React as a script tag, these top-level APIs are available on the `ReactDOM` global. If you use ES6 with npm, you can write `import ReactDOM from 'react-dom'`. If you use ES5 with npm, you can write `var ReactDOM = require('react-dom')`.
9 +If you load React from a `<script>` tag, these top-level APIs are available on the `ReactDOM` global. If you use ES6 with npm, you can write `import ReactDOM from 'react-dom'`. If you use ES5 with npm, you can write `var ReactDOM = require('react-dom')`.
10
11 ## Overview
12
docs/docs/reference-react.md
+1 -1
@@ -14,7 +14,7 @@ redirect_from:
14 - "docs/glossary.html"
15 ---
16
17 -`React` is the entry point to the React library. If you use React as a script tag, these top-level APIs are available on the `React` global. If you use ES6 with npm, you can write `import React from 'react'`. If you use ES5 with npm, you can write `var React = require('react')`.
17 +`React` is the entry point to the React library. If you load React from a `<script>` tag, these top-level APIs are available on the `React` global. If you use ES6 with npm, you can write `import React from 'react'`. If you use ES5 with npm, you can write `var React = require('react')`.
18
19 ## Overview
20