opcalculator
v1.0.5
Published
A simple React package providing basic calculation functions.
Downloads
4
Maintainers
Readme
Make calculations simple
opcalculator
A simple React package providing basic calculation functions.
Installation
npm install calc-functions-react
# Usage
import React from 'react';
import { add, subtract, multiply, divide } from 'opcalculator';
const App = () => {
const resultAdd = add(5, 3);
const resultSubtract = subtract(8, 2);
const resultMultiply = multiply(4, 6);
const resultDivide = divide(9, 3);
return (
<div>
<p>Addition: {resultAdd}</p>
<p>Subtraction: {resultSubtract}</p>
<p>Multiplication: {resultMultiply}</p>
<p>Division: {resultDivide}</p>
</div>
);
};
export default App;
## Keywords
React,Calculation,calculator,fast,addition,multiplication,subtraction,division