Skip to content
This repository was archived by the owner on Jul 24, 2018. It is now read-only.

Commit cea64d2

Browse files
author
Oscar Lodriguez
committedJul 31, 2016
updated to react 15.3
1 parent f4feb25 commit cea64d2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
 

Diff for: ‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#React (15.2.0) example using es2015 [![Build Status](https://travis-ci.org/code0wl/react-example-es2015.svg?branch=master)](https://travis-ci.org/code0wl/react-example-es2015)
1+
#React (15.3.0) example using es2015 [![Build Status](https://travis-ci.org/code0wl/react-example-es2015.svg?branch=master)](https://travis-ci.org/code0wl/react-example-es2015)
22

33
On the react site there is a demo on how to learn to think with react. This is the same tutorial executed using ES2015 and webpack as a build process. There are some gotcha's transforming your code to ES2015 whilst using React. In this demo there is a solution for these common challenges.
44

Diff for: ‎package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"http-server": "^0.9.0",
1818
"indexes-of": "^1.0.1",
1919
"node-libs-browser": "^1.0.0",
20+
"normalize": "^0.3.1",
2021
"style-loader": "^0.13.1",
2122
"webpack": "~1.13.1",
2223
"webpack-dev-server": "~1.14.1",
@@ -25,7 +26,7 @@
2526
"private": false,
2627
"scripts": {
2728
"build": "webpack",
28-
"start": "npm i && webpack && node ./node_modules/http-server/bin/http-server ./build -p 8080 -o "
29+
"start": "npm i && webpack && node ./node_modules/http-server/bin/http-server ./build -p 8080 -o"
2930
},
3031
"repository": {
3132
"type": "git",
@@ -39,6 +40,7 @@
3940
"homepage": "https://github.com/Ositoozy/react-example-es2015.git#readme",
4041
"dependencies": {
4142
"react": "^15.2.0",
42-
"react-dom": "^15.2.0"
43+
"react-dom": "^15.2.0",
44+
"tapable": "^0.2.4"
4345
}
4446
}

Diff for: ‎webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
exclude: /node_modules/,
3030
loader: "babel",
3131
query: {
32-
presets:['es2015', 'react']
32+
presets: ['es2015', 'react']
3333
}
3434
},
3535

0 commit comments

Comments
 (0)