Reactjs – getStaticProps is not working. Can someone help me?
import React from 'react' import styles from './page.module.css' export async function getStaticProps (){ const data = await fetch('https://jsonplaceholder.typicode.com/todos') const todos = await data.json(); console.log(todos); return { props: {todos} } } export default function Todos ({todos}) { return ( <> <h1>Todos</h1>…