#How to render axios response data
10 messages · Page 1 of 1 (latest)
ummm
you don't need axios ?
just fetch inside the frontmatter
Okay let me try this!
Do you mean I need to access the data through something like (frontmatter.data)?
nono
I meant
like
---
YOUR FETCH IS HERE
---
<div>Here is Data</div>
ummmm
Let me simplify
---
const response = await fetch('Here is API endpoint');
const data = await response.json();
console.log(data)
---
<div>{data}</div>
Ohh okay