Skip to content

Commit

Permalink
update annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jbpark committed Mar 9, 2018
1 parent 93f4ca2 commit ab32d3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/client/Root.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import { BrowserRouter } from 'react-router-dom';
import App from '../App';
// redux

// // redux
// import { Provider } from 'react-redux';
// import store from '../redux/store';

Expand Down
1 change: 0 additions & 1 deletion src/redux/modules/counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const increment = createAction(INCREMENT);
export const decrement = createAction(DECREMENT);

export const incrementAsync = () => (dispatch) => {
// 1초 뒤 액션 디스패치
setTimeout(
() => { dispatch(increment()); },
1000
Expand Down
10 changes: 4 additions & 6 deletions src/server/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { StaticRouter } from 'react-router';
import App from '../App';
import { Helmet } from 'react-helmet';

// redux
// // redux
// import { Provider } from 'react-redux';
// import store from '../redux/store';

Expand All @@ -14,7 +14,7 @@ import { Provider } from 'mobx-react';
import Store from '../mobx/Store';

const render = async (location) => {
const store = new Store();
const store = new Store(); //mobx
const helmet = Helmet.renderStatic();
const context = {};

Expand All @@ -28,10 +28,8 @@ const render = async (location) => {

return {
html,
// redux
// state: store.getState(),
// mobx
state: toJS(store),
// state: store.getState(), // redux
state: toJS(store), // mobx
helmet,
};
};
Expand Down

0 comments on commit ab32d3c

Please sign in to comment.