@samitouri / QOS-React-2 / commits / ed8a753346

Fix the HTML for package management (#7656)

Kite committed Sep 7, 2016 at 01:58 UTC ed8a753346661ca8ecff04385f6cf4abe87167c1
1 file changed +4 -8
docs/docs/09.2-package-management.md
+4 -8
@@ -27,11 +27,11 @@ ReactDOM.render(
27 ```
28
29 Configure [babel](https://babeljs.io/) with a `.babelrc` file:
30 -
30 +
31 ```json
32 { "presets": ["react"] }
33 ```
34 -
34 +
35 > Note:
36 >
37 > If you are using ES2015, you will want to also use the `babel-preset-es2015` package.
@@ -67,19 +67,16 @@ new webpack.DefinePlugin({
67
68 Update your HTML file as below:
69
70 -```html{8,12}
70 +```html{9}
71 <!DOCTYPE html>
72 <html>
73 <head>
74 <meta charset="UTF-8" />
75 <title>Hello React!</title>
76 - <script src="build/react.js"></script>
77 - <script src="build/react-dom.js"></script>
78 - <!-- No need for Babel! -->
76 </head>
77 <body>
78 <div id="example"></div>
82 - <script src="build/helloworld.js"></script>
79 + <script src="bundle.js"></script>
80 </body>
81 </html>
82 ```
@@ -120,4 +117,3 @@ bower install --save react
117 ## Using master
118
119 We have instructions for building from `master` [in our GitHub repository](https://github.com/facebook/react).
123 -