Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
// strip the trailing slash
const pathname = this.props.router.pathname.replace(/\/$/, '')
const {Component, initialProps} = this.props
const page = pageMap.get(pathname) || {}
const {meta = {}, requirePath} = page
const Hero = requirePath ? requirePage(requirePath).Hero : null
return (
<title>Primer Presentation{meta.title ? ` / ${meta.title}` : null}</title>
<header title="Primer">
</header>