Examples
Cards

こういうカードを作る

import {useSSG} from 'nextra/ssg'
import {Card, Cards} from "nextra-theme-docs";
 
export const getStaticProps = () => {
    return fetch('https://cat-fact.herokuapp.com/facts')
        .then(res => res.json())
        .then(catFacts => ({props: {ssg: catFacts.slice(0, 5)}, revalidate: 10}));
}
 
export const CatFactCards = () =>
    <Cards>
        {useSSG().map(catFact => <Card title={catFact.text}/>)}
    </Cards>
 
## こういうカードを作る
<CatFactCards/>