Defining the template
The template()
method should be used to define the content that the component renders.
It accepts an argument that must be a string
, TemplateStringsArray
or a function:
We should only use a function when the content of the template can be changed by a variable above:
Last updated