Skip to content

Comment on Ask HN: What's the most elegant piece of code you've seen?

Comments

I really like the code for redux. It's only a few hundred lines of code, but has spawned an ecosystem of plugins and has over 13,000 github stars already.

https://github.com/rackt/redux/tree/master/src

Indeed its only 99 lines of code if you strip out comments etc. https://twitter.com/dan_abramov/status/646299844487872512 https://gist.github.com/gaearon/ffd88b0e4f00b22c3159

A truly elegant solution to state management.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.