Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
663 B
0
Indexable
Never
function addComment () {
              const myContainer = document.querySelector('comment-list');
              const commentElement = document.createElement('.flex-1, .py-10');

              const commentName = document.createElement('.font-medium, .text-gray-900');
              const commentText = document.createElement('.prose, .prose-sm, .mt-4, .max-w-none, .text-gray-500');
              

              commentElement = commentName + commentText;
              commentName.textContent = firstName + " " + lastName;
 
              commentText.textContent = message;

              myContainer.appendChild('commentElement');
            }
Leave a Comment