Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1080 Vizualizări

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.


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 25
766
0
nov. 24
1447
1
sept. 24
1623
0
nov. 21
3258
1
ian. 19
9464