Installation
Install the packages ๐ฆ
Install via npm.
npm install muuri react muuri-react
Web Animations Polyfill (if needed)
Muuri uses Web Animations to handle all the animations by default. If you need to use Muuri on a browser that does not support Web Animations you need to use a polyfill.
npm install web-animations-js
Distribution bundle ๐ฆ
A universal module definition bundle is published on npm under the dist folder for consumption.
<!-- peer dependencies -->
<script src="https://unpkg.com/react@16.13.1/umd/react.development.js"></script>
<script src="https://unpkg.com/muuri@0.9.0/dist/muuri.min.js"></script>
<!-- lib (change x.x.x for the version you would like) -->
<script src="https://unpkg.com/muuri-react@x.x.x/dist/muuri-react.js"></script>
<script>
const React = window.React;
const {MuuriComponent} = window.MuuriReact;
function App() {
// ...
}
</script>