the-substance icon indicating copy to clipboard operation
the-substance copied to clipboard

render from API

Open HHKP1 opened this issue 4 years ago • 2 comments

Hello everyone. Very exciting example. Sorry for such a simple question. I connect to the API of my WP site .How can me render this data that comes from the API, for example, instead of these images from example, display different images received from the API request.

Health to all and Happy Hacking

HHKP1 avatar Apr 27 '20 10:04 HHKP1

the image urls are in store.js, you could put your own in there

drcmda avatar Apr 27 '20 11:04 drcmda

Thanks for the answer. I found out how the store works, but I need something else ... The data comes from the api of my site in response to fetch (). So they are dynamic data. I cannot organize the data so that it can be used further in the content () => component

HHKP1 avatar Apr 29 '20 23:04 HHKP1