|
|
|
|
|
by zelly
1508 days ago
|
|
If you're using a framework like lit-html as the author recommends, it will replace the string every update. Most people will prefer that way since it's more ergonomic and similar to React. You could do imperative DOM updates, but that'd be like going back in time to jQuery. |
|
This video is a few years old, but the core concepts remain the same.
https://m.youtube.com/watch?v=Io6JjgckHbg