1.0.0 • Published 8 years ago
react-real-math v1.0.0
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>
))
1.0.0
8 years ago