Некоторое время не писал на реакте и вот решил исправить сие деяние. Но внезапно начал получать такую ошибку
Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:
(client) <div data-reactid="
(server) <div data-reactid="
Что не так?
import React from 'react'
import { render } from 'react-dom'
import { Router, Route, browserHistory } from 'react-router'
import App from './app/containers/App'
render((
<Router history={browserHistory}>
<Route path="/" component={App}>
</Route>
</Router>
), document.getElementById('app'))
App.js
import React from 'react'
import './App.css'
class App extends React.Component {
render() {
return (
<div>
<h1>h</h1>
</div>
)
}
}
export default App