when to redraw the page and when to modify the dom using js instead

there’s posts on a users page and they’re commentable, when a user adds a comment for a post on the page, i should redraw the page or modify the dom using js

It is up to you. There is no best way, it depends on the how you want
the site to behave.

Colin