Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
988 Lượt xem

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.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
704
0
thg 11 24
1371
1
thg 9 24
1458
0
thg 11 21
3209
1
thg 1 19
9328