timeengine-react
TimeEngine ( timeengine ) Extension for Stateless React programming without props and state
https://www.npmjs.com/package/timeengine
https://www.npmjs.com/package/timeengine-react
https://github.com/TimeEngine/timeengine
https://github.com/TimeEngine/timeengine-react
From version 5.0.0, the project repository has moved to the project page.
See the Demo and Documentation of the project:
http://timeengine.github.io
Before
https://facebook.github.io/react/
A Stateful Component
var Timer = React;
After
A Stateless functional Element (Single statement code!!)
// `.intervalSeq` is to map Immutable-js infinite Sequence// on TimeEngine infinite Sequence// map natural numbers sequence on intervalSeq(1000)const TimerElement = ;};
Physics Equations
const PhysicsElement = { //MKS system of units const V0 = 900; // m/s const DEG = 45; //degree const THETA = DEG / 180 * MathPI; //radian const G = 98; //gravity const //t seconds elapsed 10msec time resolution const t = __ ; const x = ; const y = ; //================================== const Drawscale = 1; //1 dot = 1 meter const __seqEl = //atomic update ; return ; };
See the live DEMO @ http://timeengine.github.io