--- layout: default title: Shuffle with React description: TODO image: /demos/flexbox-grid.jpg extraJS: [ "demos/react.js" ] externalJS: ["https://unpkg.com/react@latest/dist/react.js", "https://unpkg.com/react-dom@latest/dist/react-dom.js", "https://unpkg.com/babel-standalone@6.15.0/babel.min.js"] jsType: "text/babel" prism: true ---

Shuffle with React

And other view-based libraries like Vue and Preact.

The simplest way is to use myShuffleInstance.resetItems(); inside the componentDidUpdate() lifecycle method.

Loading React...

Source code for this demo

Link to demo source