Sign in
Log inSign up

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?