Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
992 Представления

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
707
0
нояб. 24
1373
1
сент. 24
1462
0
нояб. 21
3212
1
янв. 19
9329