Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created July 25, 2023 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianleroux/9c7649519367613f45ceeacb87cd6c1c to your computer and use it in GitHub Desktop.
Save brianleroux/9c7649519367613f45ceeacb87cd6c1c to your computer and use it in GitHub Desktop.
declarative vs imperative
<!-- describing what I want -->
<my-apple></my-apple>
// vs describing steps to create what I want
const apple = document.createElement("my-apple")
document.body.appendChild(apple)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment