Created by: cereallarceny
I've added a section in the README (both the user guide and the root) to allow for server-side rendering to be done in an unobtrusive manner. It assumes you're using a few technologies (which you may certainly sub out for others):
- React Helmet
- React Router v4
- Redux and Thunk (totally optional)
The tutorial is available here. The demo repository is available here.
Please note that this demo is done entirely without running eject
, nor does it require that you change anything about your create-react-app
application. The only known restrictions are as follows:
- No code splitting.
- You can’t use
document
orwindow
in your React application except incomponentDidMount
andcomponentWillUnmount
. This is because servers don’t have access to the DOM.
I'm 100% flexible on the wording. What I put may not be sufficient in detail. Please let me know and I'll happily amend the commit.