Switch page title for different pages

This commit is contained in:
Tom Raithel
2017-03-21 21:30:03 +01:00
parent 3fedd01d42
commit 169bfc74ec
9 changed files with 42 additions and 9 deletions

View File

@@ -44,9 +44,13 @@ delete window.__TECHRADAR__;
// Create Redux store with initial state
const store = createStore(appReducer, preloadedState, applyMiddleware(historyManager))
const handleSetTitle = (title) => {
document.title = `${title} | AOE Technology Radar`;
};
render(
<Provider store={store}>
<App />
<App onSetTitle={handleSetTitle} />
</Provider>,
document.getElementById('root')
)