d3293f7cd6
* Enable granular chunks config for all chunk types Adding comment Bug fix * Update index.test.js * Update index.test.js * Fix test cases. Adding next/link to not trigger a different bug * Removing obsolete comment
25 lines
486 B
JavaScript
25 lines
486 B
JavaScript
import { useState, useEffect } from 'react'
|
|
import _ from 'lodash'
|
|
import dynamic from 'next/dynamic'
|
|
import Link from 'next/link'
|
|
|
|
const One = dynamic(() => import('../components/one'))
|
|
|
|
const Page = () => {
|
|
const [str, setStr] = useState('rad')
|
|
useEffect(() => {
|
|
setStr(_.pad(str, 7, '_'))
|
|
}, [])
|
|
|
|
console.log(_)
|
|
return (
|
|
<div>
|
|
page2
|
|
<p id='padded-str'>{str}</p>
|
|
<One />
|
|
<Link href='/page3'>Page3</Link>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|