react-mac-calculator

The same Calculator as my React-Calculator-App repo, but bundled with Rollup into a reusable component as ES6 Module

Usage no npm install needed!

<script type="module">
  import reactMacCalculator from 'https://cdn.skypack.dev/react-mac-calculator';
</script>

README

React-Mac-Calculator

NPM JavaScript Style Guide license

Live Demo

Click here

Overview

This is a reusable macOs like calculator component, nothing more nothing less

Usage

First install into your App

with npm:

npm i -S react-mac-calculator

with yarn:

yarn add react-mac-calculator

Then import and use it in your App

import React from 'react'
import { Calculator } from 'react-mac-calculator'

const App = props => (
  <div className="app">
    <Calculator />
  </div>
)

export default App