Skip to content

kaiz123/React-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic-react-calculator

A simple react calculator

Installation

Run the following command: npm install basic-react-calculator

Usage

import Calculator from 'basic-react-calculator'  

class CalculatorExample extends React.Component {

	//color prop specifies the color of the button which when clicked opens the calculator
	
  render() {
    return (

    		<Calculator color="primary"/>
    		<Calculator color="secondary"/>
    		<Calculator color="success"/>
    		<Calculator color="info"/>
    		<Calculator color="warning"/>
    		<Calculator color="danger"/>
    		<Calculator color="link"/>
    	);
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published