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?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct