react-mixin-qdeprecated

Primitive queue mixin for react.js

Usage no npm install needed!

<script type="module">
  import reactMixinQ from 'https://cdn.skypack.dev/react-mixin-q';
</script>

README

For the moment it's a primitive mixin which allows you to queue and unqueue objects. For example to keep pending messages in a chat.

import q from "react-mixin-q"
const App = React.createClass({
  mixins:[ q ],
  ...
)}

The queue is array at this.q.

Usage:

this.q.add( el );
this.q.del( el );