Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 25
589
0
lis 24
1206
1
wrz 24
1251
0
lis 21
3118
1
sty 19
9206