Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
979 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
März 25
693
0
Nov. 24
1360
1
Sept. 24
1447
0
Nov. 21
3200
1
Jan. 19
9324