Hacker GitHub

← All repos

1Marc/modern-todomvc-vanillajs

View on GitHub ↗ ★ 1,160 CSS

TodoMVC with Modern (ES6+), Vanilla JavaScript

10 mentions on Hacker News by 6 people: 1 story, 9 comments · first 2022-05-07 · latest 2022-09-09

Mentions per year 10 mentions · busiest year 2022 (10)
20082026
  1. >> Does not trigger when modified from the same page I'm thinking that's the purpose of https://github.com/1Marc/todomvc-vanillajs-2022/blob/main/js... - without dispatching that custom save event, there wouldn't be a way to react at any…
  2. Someone posted this here a while back: https://github.com/1Marc/todomvc-vanillajs-2022/tree/main/js - i bookmarked it because i thought it was well done
  3. Here's what I came up with for switching to event delegation: https://github.com/1Marc/todomvc-vanillajs-2022/blob/event-d...
    comment by grabanski · 2022-05-12 · in TodoMVC App Written in Vanilla JavaScript
  4. …as a function of state Exactly. To elaborate, here's the big, big caveat in a miniature form: https://github.com/1Marc/todomvc-vanillajs-2022/blob/854dd40... Note that this clears and recreates the DOM on every action (eg mark complete),…
  5. How does this look? https://github.com/1Marc/todomvc-vanillajs-2022/commit/d38e5...
    comment by grabanski · 2022-05-07 · in TodoMVC App Written in Vanilla JavaScript
  6. How does this look? https://github.com/1Marc/todomvc-vanillajs-2022/commit/d38e5...
    comment by grabanski · 2022-05-07 · in TodoMVC App Written in Vanilla JavaScript
  7. Here's what it would look like to support that usecase: https://github.com/1Marc/todomvc-vanillajs-2022/commit/09979...
    comment by grabanski · 2022-05-07 · in TodoMVC App Written in Vanilla JavaScript
  8. …yet, specifically for HTML. 0: https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Typ... 1: https://github.com/1Marc/todomvc-vanillajs-2022/blob/1c31309... 2: https://developer.mozilla.org/en-US/docs/Web/API/TrustedHTML...
    comment by rickstanley · 2022-05-07 · in TodoMVC App Written in Vanilla JavaScript
  9. It seems like you didnt actually look at the code because thats exactly what its doing: https://github.com/1Marc/todomvc-vanillajs-2022/blob/main/js... it clears innerHTML there and then rerenders the children
    comment by chacham15 · 2022-05-07 · in TodoMVC App Written in Vanilla JavaScript