+26
-8
lines changedFilter options
+26
-8
lines changed Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1
1
{
2
-
"presets": ["es2015-loose", "stage-0", "react"]
2
+
"presets": ["es2015-loose", "stage-0", "react"],
3
+
"plugins": ["react-hot-loader/babel"]
3
4
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
1
1
import 'todomvc-app-css/index.css';
2
2
import React from 'react';
3
3
import { render } from 'react-dom';
4
+
import { AppContainer } from 'react-hot-loader';
4
5
import configureStore from './store/configureStore';
5
6
import Root from './containers/Root';
6
7
7
8
const store = configureStore();
8
9
9
10
render(
10
-
<Root store={store} />,
11
+
<AppContainer
12
+
component={Root}
13
+
props={{ store }}
14
+
/>,
11
15
document.getElementById('root')
12
16
);
17
+
18
+
if (module.hot) {
19
+
module.hot.accept('./containers/Root', () => {
20
+
render(
21
+
<AppContainer
22
+
component={require('./containers/Root').default}
23
+
props={{ store }}
24
+
/>,
25
+
document.getElementById('root')
26
+
);
27
+
});
28
+
}
Original file line number Diff line number Diff line change
@@ -29,8 +29,8 @@
29
29
"homepage": "https://github.com/gaearon/redux-devtools#readme",
30
30
"dependencies": {
31
31
"classnames": "^2.1.2",
32
-
"react": "^0.14.6",
33
-
"react-dom": "^0.14.6",
32
+
"react": "^15.0.1",
33
+
"react-dom": "^15.0.1",
34
34
"react-redux": "^4.1.0",
35
35
"redux": "^3.1.1"
36
36
},
@@ -43,10 +43,10 @@
43
43
"babel-preset-stage-0": "^6.3.13",
44
44
"node-libs-browser": "^0.5.2",
45
45
"raw-loader": "^0.5.1",
46
-
"react-hot-loader": "^1.3.0",
46
+
"react-hot-loader": "^3.0.0-alpha.8",
47
47
"redux-devtools": "^3.0.1",
48
-
"redux-devtools-log-monitor": "^1.0.2",
49
48
"redux-devtools-dock-monitor": "^1.0.1",
49
+
"redux-devtools-log-monitor": "^1.0.2",
50
50
"style-loader": "^0.12.3",
51
51
"todomvc-app-css": "^2.0.1",
52
52
"webpack": "^1.9.11",
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ module.exports = {
6
6
entry: [
7
7
'webpack-dev-server/client?http://localhost:3000',
8
8
'webpack/hot/only-dev-server',
9
+
'react-hot-loader/patch',
9
10
'./index'
10
11
],
11
12
output: {
@@ -30,12 +31,12 @@ module.exports = {
30
31
module: {
31
32
loaders: [{
32
33
test: /\.js$/,
33
-
loaders: ['react-hot', 'babel'],
34
+
loaders: ['babel'],
34
35
exclude: /node_modules/,
35
36
include: __dirname
36
37
}, {
37
38
test: /\.js$/,
38
-
loaders: ['react-hot', 'babel'],
39
+
loaders: ['babel'],
39
40
include: path.join(__dirname, '..', '..', 'src')
40
41
}, {
41
42
test: /\.css?$/,
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4