Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1078 Переглядів

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.


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
бер. 25
765
0
лист. 24
1445
1
вер. 24
1617
0
лист. 21
3258
1
січ. 19
9457