Skip to Content
Menú
This question has been flagged

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.


Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de març 25
671
0
de nov. 24
1307
1
de set. 24
1390
0
de nov. 21
3164
1
de gen. 19
9275