const dropdownLinks = this.props.location.pathname !== "/" && this.props.location.pathname !== "/new" ? this.state.links.filter(el => el.pathname !== this.state.currentLink) : this.state.links.filter(el => el.pathname !== "/");
App.propTypes = { location: PropTypes.shape({ pathname: PropTypes.string.isRequired }).isRequired };
ReactDOM.hydrate( <ReduxProvider store={store}> <BrowserRouter> <App /> </BrowserRouter> </ReduxProvider>, document.getElementById("root") );
const App = ({ location }) => ( <Switch> <Route location={location} exact path="/" render={() => (<MainArticlesPage/>)} /> </Switch> )
<ReduxProvider store={store}> <StaticRouter location={req.url} context={routerContext}> <App /> </StaticRouter> </ReduxProvider>