News for hackers. Stuff that matters.
Re:Ask HN: What is the single top-priority software engineer... by richajak on Sunday February 09, 2020 @09:06PM (#22285824)
For this specific example, I would use event listener to sync the content. All done manually in DOM, no shortcut, some codes duplicated. I think that's what SPA frameworks and its components try to promote, single point of update.

Personally, I like the vannila JS approach, a bit tedious, but I know what I will get.

There are no comments on this comment yet.