跳至内容
菜单
此问题已终结

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.


形象
丢弃
相关帖文 回复 查看 活动
0
3月 25
709
0
11月 24
1374
1
9月 24
1467
0
11月 21
3212
1
1月 19
9333