Next.js mempunyai 2 metode yaitu getStaticProps() dan getServerSideProps(). Metode ini dapat disertakan dalam komponen React apa pun yang…