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
20082026
-
>> 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…
comment by CraigJPerry · 2022-09-09 · in Ask HN: What happened to vanilla HTML/CSS/JS development? -
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
comment by CraigJPerry · 2022-09-09 · in Ask HN: What happened to vanilla HTML/CSS/JS development? -
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 -
…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),…
comment by klabb3 · 2022-05-07 · in TodoMVC App Written in Vanilla JavaScript -
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 -
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 -
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 -
…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 -
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 -
▲ 152
TodoMVC App Written in Vanilla JavaScriptstory by marban · 2022-05-07 · 109 comments