My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What's your preferred method for creating DOM elements in vanilla JS?

Ryosuke's photo
Ryosuke
·Jun 5, 2019

<template>

36%

`Template literals`

9%

createElement()

55%

Other

0%

11 votes · Closed

From <template> to template literals to the classic createElement, what technique do you prefer to use when you need to take data, create DOM elements, and insert it into the DOM somewhere?