Hacker News new | ask | show | jobs
by vedran 2355 days ago
Agreed. I much prefer the style of rematch[1] where you bind directly to the actions rather than creating a constant to check for in a switch statement

[1] https://github.com/rematch/rematch