I created magic-grid a few years ago as a super simple way to set up a pinterest-style grid layout. The library is written in plain js with no dependencies but since then, React has become much more popular and I've seen people struggle to make a react version of the library with varying degrees of success.
use-magic-grid is a beautiful port of magic-grid that makes all the functionality and simplicity of the original library available through a hook. Try it out and open issues if you find bugs. Enjoy!
Top comments (0)