React, JavaScript, Architecture.
<p>{data.content}</p> </div> ); } export async function getStaticProps() { const res = await fetch('https://api.example.com/data'); const data = await res.json(); return { props: { data, }, }; } export default Home; In this example: • The getStaticProps function fetches data at build time and runs