1 2 3 4 5 6
import CommentForm from "./comments/comment_form"; const post = window.location.pathname; const domain = window.location.hostname; new CommentForm(domain, post);