A simple calculator component with the basic operations
- React ^16.9.0 - Javascript library for user interfaces
npm install @kevinorriss/calculator
Import the component
import Calculator from '@kevinorriss/calculator'
...
<!-- JSX -->
<div className="your-container">
<Calculator />
</div>
This repo comes with a react app for development purposes. To get started, open a terminal in the root of the project and then:
cd ./component
npm link
cd ..
npm link @kevinorriss/calculator
npm start
cd ./component
npm run dev
Whenever you make a change to the component code, the react app will update.
npm test
This project uses Jest and Enzyme for its unit tests, simply run the above code to run the test suites.
- Kevin Orriss - orriss.io
This project is licensed under the ISC License