JSFiddle - React, Tailwind, and code Playground

by Gonzalo Chumillas

HTML

<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<div id="canvas"></div>

JavaScript

var stage = new Kinetic.Stage({
    container: 'canvas',
    width: 320,
    height: 240
});

// we cannot store data in the 'stage' object
$(stage).data('test', 'this is a test');
alert($(stage).data('test'));  // returns 'undefined'