From 1380aed32554c4e82e3e56e6549a68b8d6ce0093 Mon Sep 17 00:00:00 2001 From: Tobias Kronthaler Date: Sun, 30 Jul 2017 21:35:03 +0200 Subject: [PATCH] Added react-helmet & SSR title/meta --- package.json | 1 + public/index.html | 3 ++- server/universal.js | 8 +++++++- src/containers/App.js | 5 +++++ src/containers/FirstPage.js | 5 +++++ 5 files changed, 20 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8d00ea8..6577837 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "morgan": "^1.8.1", "react": "^15.5.4", "react-dom": "^15.5.4", + "react-helmet": "^5.1.3", "react-redux": "^5.0.4", "react-router-dom": "^4.1.1", "redux": "^3.6.0" diff --git a/public/index.html b/public/index.html index d1e7f68..717fe77 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,8 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - Server Side Rendering - Create React App + {{HELMET_TITLE}} + {{HELMET_META}}