Isomorphic Routing in React with react-engine

Share this video with your friends

Send Tweet

In React, Using react-router (which installs alongside react-engine), we can create isomorphic routing for our application.

Abha
Abha
~ 9 years ago

Hi, I am following your tutorial to create an isomorphic and it worked fine. I want to include bootstrap.css in the app, so I added line <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/> in public/views/page.jsx . This included the stylesheet but also gave a warning in console "Uncaught Invariant Violation: You're trying to render a component to the document using server rendering but the checksum was invalid.". Which makes sense, because I am trying to using the client side code in server side code. Do you have any idea how to get the stylesheet imported without the warning ? Thanks