Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1100 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 25
796
0
lis 24
1466
1
zář 24
1649
0
lis 21
3270
1
led 19
9486