Untitled

 avatar
unknown
plain_text
a year ago
663 B
5
Indexable
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');
            }
Editor is loading...
Leave a Comment