@@ -7,16 +7,16 @@ import path from 'path'
7
7
import React from 'react'
8
8
import { renderToString } from 'react-dom/server'
9
9
10
- import App from '../client/pages/example/App'
10
+ import Component from '../client/pages/example/App'
11
11
import extractMapping from './middleware/extractMapping'
12
12
import mapAssets from './utils/mapAssets'
13
13
import { StaticRouter } from 'react-router'
14
14
15
15
import { Provider } from 'react-redux'
16
- import store from '../client/pages/integration /store/forServer'
17
- import { Content } from '../client/pages/integration/container/ Root'
16
+ import store from '../client/pages/tools /store/forServer'
17
+ import { Content } from '../client/pages/integration/Root/index '
18
18
import Integration from '../client/pages/integration/App'
19
-
19
+ import reducers from '../client/pages/integration/store/'
20
20
const app = express ( )
21
21
app . set ( 'views' , path . join ( __dirname , 'views' ) ) ;
22
22
app . set ( 'view engine' , 'hbs' )
@@ -46,7 +46,7 @@ app.use('/components', extractMapping, (req, res, next) => {
46
46
location = { req . url }
47
47
context = { { } }
48
48
basename = "/components" >
49
- < App />
49
+ < Component />
50
50
</ StaticRouter > )
51
51
res . render ( 'components' , {
52
52
app : content ,
@@ -56,7 +56,7 @@ app.use('/components', extractMapping, (req, res, next) => {
56
56
} )
57
57
58
58
app . use ( '/integration' , extractMapping , ( req , res , next ) => {
59
- const content = renderToString ( < Provider store = { store } >
59
+ const content = renderToString ( < Provider store = { store ( reducers ) } >
60
60
< StaticRouter
61
61
location = { req . url }
62
62
context = { { } }
0 commit comments