ReactJs layout library.
npm install react-masonryReactJs layout library.
It places elements in optimal positions by stacking them from left to right and from top to bottom.
No deps besides ReactJs ⚛️.
See Demo.
Place any elements inside the Masonry component. They will be cloned, measured and positioned.
Elements rendered inside Masonry must be DOM elements.
``jsx
import { Masonry } from 'react-masonry'
return (

some text

)
``