What are some good options for templating in a chrome extension in 2021

Solution for What are some good options for templating in a chrome extension in 2021
is Given Below:

Exploring options for creating templates and DOM manipulation for a content script.
Are we limited to doing dom manipulations with native js, or is there a better option.

Considered using web components that would wrap react components, but looks like web components are not available without polyfills. Still considering this option

Already setup an environment using webpack. Would love to hear any other options that I haven’t considered