Created
July 25, 2023 21:16
-
-
Save brianleroux/9c7649519367613f45ceeacb87cd6c1c to your computer and use it in GitHub Desktop.
declarative vs imperative
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- describing what I want --> | |
<my-apple></my-apple> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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