awesome-react-calculator
npm install awesome-react-calculatorAwesome React Calculator is a React Component library. It gives you a simple calculator component to work in your project. It supports keyboard and you can paste your expression to get the result.

Use the npm or yarn to install
``bash`
npm install -S awesome-react-calculator`bash`
yarn add awesome-react-calculator
`javascript
import React, {Component} from 'react'
import {render} from 'react-dom'
import Calculator from "awesome-react-calculator";
const style = {
height: '24rem',
width: '15rem'
}
class Demo extends Component {
handleInput(input) {
console.log(${input.expression} is shown in the calculator, User clicked the ${input.key})
}
onResultChange(newResult) {
console.log(newResult)
console.log(${newResult.expression} is validated as ${newResult.result} )
}
render() {
return
Calculator
onResultChange={this.onResultChange}/>
}
}
render(
`Options
Please set the width and height of the parent div of our the
Please make sure to update tests as appropriate.