Using Svelte to manage state and build nice things.
I chose to use Svelte so that I wouldn't fall back on my usual Angular-based habits. I also tried to show component-based thinking and separation of concerns.
Test it out
npm install
and then npm run dev
- click to distribute points
- right-click to take them away
- (I was following instructions here, but I think the better UX is to just toggle them and not to override the browser context menu)
Or visist https://boring-einstein-da65a3.netlify.app/