-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to react 16. adds inline source map
- Loading branch information
1 parent
8b35a87
commit 3950375
Showing
7 changed files
with
49 additions
and
168 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { AppContainer } from 'react-hot-loader'; | ||
import { Provider } from 'react-redux'; | ||
import { store } from './store.js'; | ||
import { getArrivals } from './actions.js'; | ||
import ArrivalsContainer from './containers/arrivals.js'; | ||
import ArrivalsContainer from './containers/arrivals.js'; | ||
|
||
require('../styles.css'); | ||
|
||
const { direction } = store.getState(); | ||
store.dispatch(getArrivals('train', direction)); | ||
store.dispatch(getArrivals('dlr', direction)); | ||
|
||
ReactDOM.render( | ||
const render = AppRoot => { | ||
|
||
<Provider store={ store }> | ||
<ArrivalsContainer /> | ||
</Provider>, | ||
document.querySelector(".container") | ||
); | ||
ReactDOM.render( | ||
<Provider store={ store }> | ||
<AppContainer> | ||
<AppRoot /> | ||
</AppContainer> | ||
</Provider>, | ||
document.querySelector(".container") | ||
); | ||
}; | ||
|
||
render(ArrivalsContainer); | ||
|
||
// Webpack Hot Module Replacement API | ||
if (module.hot) { | ||
module.hot.accept('./containers/arrivals', () => { render(ArrivalsContainer); }); | ||
} |
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters