Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1571 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mar 25
1231
0
nov 24
1951
1
set 24
2292
0
nov 21
3645
1
gen 19
10137