UNPKG

@nadeshikon/plugin-nextjs

Version:
17 lines (15 loc) 477 B
import React from 'react' import Link from 'next/link' import useSWR from 'swr' import styles from '../styles/shared.module.css' export default function Page(props) { const { data } = useSWR('swr-index', (v) => v, { fallbackData: 'swr-index' }) return ( <> <b>rc:{React.Component ? 'c' : 'no'}</b> <p className={styles.content}>hello from pages/index</p> <Link href="/dashboard">Dashboard</Link> <div>{data}</div> </> ) }