-
-
Save webkreation/78591c0607785a6b38b4c44963f95a5d to your computer and use it in GitHub Desktop.
Revisions
-
codepunkt revised this gist
Jul 10, 2017 . No changes.There are no files selected for viewing
-
codepunkt revised this gist
Jul 10, 2017 . No changes.There are no files selected for viewing
-
codepunkt revised this gist
Jul 10, 2017 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ // usage with react-router-redux import { ConnectedRouter } from 'react-router-redux' import { basePath as basename } from './config.json' const history = createHistory({ basename }) ReactDOM.render( This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ // usage with react-router import { BrowserRouter } from 'react-router-dom' import { basePath as basename } from './config.json' ReactDOM.render( <BrowserRouter basename={basename}> -
codepunkt created this gist
Jul 10, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ { "basePath": "/" } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ // usage with react-router-redux import { ConnectedRouter } from 'react-router-redux' import { basePath as basename } from '../config.json' const history = createHistory({ basename }) ReactDOM.render( <ConnectedRouter history={history}> <App /> </ConnectedRouter>, document.querySelector('#app') ) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ // usage with react-router import { BrowserRouter } from 'react-router-dom' import { basePath as basename } from '../config.json' ReactDOM.render( <BrowserRouter basename={basename}> <App /> </BrowserRouter>, document.querySelector('#app') ) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ var publicPath = require('./config.json').basePath module.exports = { output: { publicPath, }, devServer: { publicPath, historyApiFallback: { index: publicPath, }, }, }