react-real-math
v1.0.0
Published
Math DSL for React.js
Downloads
4
Readme
react-real-math
Do math with a DSL as easy as React.js!
import { computeValue, Add, Multiply, Subtract, One, Two, Four, Five } from 'react-real-math'
console.log("The answer to everything:", computeValue(
<Add>
<Two/>
<Multiply by={<Four/>}>
<Subtract by={<One/>}>
<Add>
<Five/>
<Four/>
<One/>
<One/>
</Add>
</Subtract>
</Multiply>
</Add>
))