Next.js
nextjs.org 以下の所をTypeScriptで書くとこうなったので、共有。 function Blog({ posts }) { return ( <ul> {posts.map((post) => ( <li>{post.title}</li> ))} </ul> ) } // This function gets called at build time export async function getStaticProps() { // Call an …
nextjs.org 以下の所をTypeScriptで書くとこうなったので、共有。 function Blog({ posts }) { return ( <ul> {posts.map((post) => ( <li>{post.title}</li> ))} </ul> ) } // This function gets called at build time export async function getStaticProps() { // Call an …