1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-20 13:11:44 +00:00

bumpup react (0.13.3->0.14.0), reacthmr work perfectly

This commit is contained in:
Rokt33r
2015-10-21 02:47:21 +09:00
parent 326c7a93fb
commit f6d2e898dc
12 changed files with 109 additions and 78 deletions

View File

@@ -9,6 +9,7 @@ import SignupPage from './SignupPage'
import HomePage from './HomePage'
import auth from 'boost/auth'
import store, { devToolElement } from 'boost/store'
let ReactDOM = require('react-dom')
require('../styles/main/index.styl')
function onlyUser (state, replaceState) {
@@ -28,10 +29,10 @@ let routes = (
let el = document.getElementById('content')
React.render((
ReactDOM.render((
<div>
<Provider store={store}>
{() => <Router>{routes}</Router>}
<Router>{routes}</Router>
</Provider>
{devToolElement}
</div>