Skip to Content
मेन्यू
This question has been flagged

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.


Avatar
Discard
Related Posts Replies Views Activity
0
मार्च 25
728
0
नव॰ 24
1398
1
सित॰ 24
1491
0
नव॰ 21
3227
1
जन॰ 19
9357