Sat Jan 06 2024 08:26:37 GMT+0000 (Coordinated Universal Time)
Saved by @Hritujeet
export async function getServerSideProps() { // Fetch data from external API const res = await fetch(`https://.../data`) const data = await res.json() // Pass data to the page via props return { props: { data } } }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments