mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
9532cc1256
~I am not sure if this is a valid fix yet, but I was going to let CI run the tests for me. I'll close and look into it if the build fails.~ Let me know if this will cause issues, but I don't think it should. The React docs recommends moving `componentWillMount` logic into the constructor
16 lines
296 B
JavaScript
16 lines
296 B
JavaScript
import React from 'react'
|
|
import Head from 'next/head'
|
|
import Link from 'next/link'
|
|
|
|
export default (props) => <div id='head-1'>
|
|
<Head>
|
|
<meta
|
|
name='description'
|
|
content='Head One'
|
|
/>
|
|
</Head>
|
|
<Link href='/nav/head-2'>
|
|
<a id='to-head-2'>to head 2</a>
|
|
</Link>
|
|
</div>
|