Following this article: Server-side rendering with create-react-app, code-splitting, preloaded data, React Router, Helmet, Redux, and Thunk
The main difference is that we are not using Redux, but Context Api
npm install
npm run build
npm run serve
- Currently we can't start the app without the server, as it fails to fetch for the API.
- Add different meta tags for different routes via Helmet
- Preload Context state (similar to solution in the mentioned article maybe)
This project was bootstrapped with Create React App.