Next.js Tutorial #10 - Fetching Data (getStaticProps)

↔️ ↕️


all right then gang so

now hopefully you've got a feel for the

basics of creating

a next application how to make pages and

routes how to link between them

how to use styles how to create a layout

component and now

also how to use static assets the next

step for us

is to make the website a bit more

dynamic and to bring data

into the mix for example it would be

nice to fetch some data from an

api endpoint which we can then show in

one of our page components

in our case that's going to be some

ninja data now

normally this data would come from a

ready-made api

endpoint that we might create or

directly from a database like firebase

Related queries:

how to fetch data from api in next js 13
how to fetch an api in javascript
fetch api javascript get example
how to fetch data from api in js
how to fetch json data from api in javascript