React-starter-kit: Setting support material-ui

Created on 26 Oct 2016  路  1Comment  路  Source: kriasoft/react-starter-kit

When setting mateial-ui i got error. Please help me

warning.js:36Warning: 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) ;width:100%;display:flex;padding-left:24
(server) ;width:100%;display:-webkit-box,-moz-box

Source code setting

import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();

function Layout({ children }) {
  return (
    <MuiThemeProvider>
      <div>
        <Header />
        {React.Children.only(children)}
        <Footer />
      </div>
    </MuiThemeProvider>
  );
}

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings