Skip to content

This application is a simple tip calculator built with React and Vite. It allows users to calculate the tip amount based on the bill and the service rating.

Notifications You must be signed in to change notification settings

Julyemerson/react-tip-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tip React Calculator

Tip Calculator

This application is a simple tip calculator built with React and Vite. It allows users to calculate the tip amount based on the bill and the service rating.

Main Components

  • App: This is the main component of the application. It maintains the state of the bill amount, the service rating, and the calculated tip. It also renders the other components and handles the reset functionality.

  • BillInput: This component allows users to input the bill amount. It accepts a number and ensures that the value is always positive.

  • ServiceInput: This component is used to rate the service. The rating affects the calculated tip.

  • Output: This component displays the calculated tip based on the bill amount and the service rating.

Running the Application

To run the application, use the dev script in the package.json file:

npm run dev

About

This application is a simple tip calculator built with React and Vite. It allows users to calculate the tip amount based on the bill and the service rating.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published