Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>JS ComponentsNew to Visual Studio Code? Get it now.
JS Components

JS Components

Nathaniel Kemme Nash

|
83 installs
| (0) | Free
Create HTML components using vanilla JS
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JS Components

Easily create html components using vanilla javascript.

Getting Started

Create a new html file and create a div full of elements. It is suggested that you name each element by adding the eName attribute to each element. To make a value dynamic surround it in curly brackets and inside the curly brakets put the name of the variable. To turn this into a components open up the command prompt (SHIFT+CMD+P) and type in "Create Component" and enter in the component name.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft