Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<strong>Menu</strong>
<p></p>
<nav>
<ul>
<li>
<a href="{prefixUrlAbsolute('/')}">
Home
</a>
</li>
<li>
<a href="{prefixUrlAbsolute('/page-a')}">
Page A
</a>
</li>
<li>
<a href="{prefixUrlAbsolute('/page-b')}">
Page B
</a>
</li>
</ul>
</nav>
<p>
The links above are absolute URLs, created using{' '}
<code>prefixUrlAbsolute</code>.
</p>
<p>Neat!</p>
<div>
{this.props.children}
</div>
);
render() {
return (
<div>
<div>
<p>
<strong>Menu</strong>
</p>
<nav>
<ul>
<li>
<a href="{prefixUrlAbsolute('/')}">
Home
</a>
</li>
<li>
<a href="{prefixUrlAbsolute('/page-a')}">
Page A
</a>
</li>
<li>
<a href="{prefixUrlAbsolute('/page-b')}">
Page B
</a>
</li>
</ul>
</nav>
<p>
The links above are absolute URLs, created using{' '}
<code>prefixUrlAbsolute</code>.
</p>
<p>Neat!</p>
</div></div>
render() {
return (
<div>
<div>
<p>
<strong>Menu</strong>
</p>
<nav>
<ul>
<li>
<a href="{prefixUrlAbsolute('/')}">
Home
</a>
</li>
<li>
<a href="{prefixUrlAbsolute('/page-a')}">
Page A
</a>
</li>
<li>
<a href="{prefixUrlAbsolute('/page-b')}">
Page B
</a>
</li>
</ul>
</nav>
<p></p></div></div>