mirror of
https://github.com/kremalicious/ipfs.git
synced 2024-11-22 01:37:07 +01:00
lazy loading components
This commit is contained in:
parent
4a0d07d43a
commit
8f1a166ab1
@ -1,10 +1,11 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Add from '../components/Add'
|
import dynamic from 'next/dynamic'
|
||||||
import { title, description } from '../../site.config'
|
import { title, description } from '../../site.config'
|
||||||
|
import Layout from '../Layout'
|
||||||
import styles from './index.module.css'
|
import styles from './index.module.css'
|
||||||
|
|
||||||
import Layout from '../Layout'
|
const Add = dynamic(() => import('../components/Add'))
|
||||||
import Info from '../components/Info'
|
const Info = dynamic(() => import('../components/Info'))
|
||||||
|
|
||||||
const Home = () => (
|
const Home = () => (
|
||||||
<Layout>
|
<Layout>
|
||||||
|
Loading…
Reference in New Issue
Block a user