dev said about 2 years ago on Real-time Comments and Voting :
Why re-render the entire comment template? The code can be simplified
Partial comment
#app/views/comments/_comment.html.erb
<%= content_tag :div, id: dom_id(comment), class: "card mb-3" do %>
  <div class="card-body">
    <h5 class="card-title"><%= comment.user.email %> said:</h5>
    <p class="card-text"><%= comment.content %></p>
    <p id='<%= dom_id(comment)%>_count'>
      <%= comment.vote_count %>
    </p>
    <%= link_to "Up Vote", comment_votes_path(comment, choice: :up_vote, format: :turbo_stream), class: "card-link" %>
    <%= link_to "Down Vote", comment_votes_path(comment, choice: :down_vote, format: :turbo_stream), class: "card-link" %>
  </div>
<% end %>
model Vote
# app/models/vote.rb
after_update_commit do
  broadcast_update_to("comments", target: "#{dom_id(comment)}_count", html: comment.vote_count)
end