Understand the World

Mini-post on minicoil

February 27, 2021

Trying to resume regular blogging again :)
Smaller posts, but hopefully weekly. Less philosophy and more works, too.

Release

This time: minicoil, a tiny React library with a subset of Recoil.js API.

Differences from Recoil: no derived state, no snapshots, no other fancy stuff.

Just a way to conveniently exchange data between components when you find yourself creating dozens of Context Providers or wondering whether it’s possible to insert them into the component tree without re-rendering everything.

Controversy

Vlad Balin says it’s all just glorified global variables, and giving them names makes things even worse %)

Still, I find it useful to have some kind of a namespace where you can peek at the state of your app when something looks off.

See you next time :)


Oleksandr Nikitin

Ideas, experiments and projects by Oleksandr.
Ping me via Telegram, Twitter, or just e-mail. There's also a Telegram channel of articles I like.