topic-list-item template as an example.
The template for it is a raw template. Raw templates require explicit code to render them.
If you look at the above snippet, a path(relative to templates/) is being passed here.
Add your custom template to the
templates/ folder in your theme/plugin and preferably name it something different to the actual template.
Just override that computed property and replace the actual template name with your new template name and you’re good to go.
You can also override the template conditionally, or switch between them conditionally according to the requirement.