JSFiddle - React, Tailwind, and code Playground

by lega911

HTML

<script src="http://angularlight.org/bin/alight_0.10.last.min.js"></script>

JavaScript

var start = performance.now();

var scope = alight.Scope();
scope.index = 0;

scope.$watch('index', function(value) {
  var finish = performance.now();
  var result = 'result = ' + value + ', ' + Math.floor(finish - start) + 'ms';
  document.body.innerHTML = result;
});

for(var i=2;i<1000000;i++) {
  scope.index = i;
  scope.$scan({late: true});
}