Renders a template (function) to into an HTML element. The template needs to return a valid HTML string (with a single root element). A context with key/value pairs will be passed into the template to allow dynamic rendering.
is the type of the rendered dom element.
is the shape of the context data object
a function to render a template
context data for the template
the rendered htmml element
Renders a template (function) to into an HTML element. The template needs to return a valid HTML string (with a single root element). A context with key/value pairs will be passed into the template to allow dynamic rendering.