Skip to content

btnwtn/react-real-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

react-real-math

Do math with a DSL as easy as React.js!

Install

$ yarn add react-real-math

Example

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>
))

About

Do math with a DSL as easy as React.js!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published