Skip to Content
Menu
This question has been flagged
990 Rodiniai

Can anyone tell me how the JS function renderToElement works? 

import { renderToElement } from "@web/core/utils/render";

What does it do and how can I use it? 


My case:

I have a JS file that requests data from the database and I want to render this data on the website.

The respons is a JSON object with all the required fields. 

But how can I render the appropriate html (front-end)?

I found the function renderToElement, but I have no idea how it works.


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
kov. 25
706
0
lapkr. 24
1373
1
rugs. 24
1459
0
lapkr. 21
3210
1
saus. 19
9328