Skip to content

Auddity/FEM_Tip-Calculator-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Tip calculator app solution - REACT

This is my solution to the Tip calculator app challenge on Frontend Mentor.

Overview

User can input the bill total and the number of people paying along with selecting a tip amount.

The Tip Amount per Person and the Total per Person update with each input change.

If a zero is inputed to the bill or number of people input an error appears.

Screenshot

Links

Process

Built With

  • React - JS library
  • Flexbox
  • CSS Grid
  • Mobile-first Workflow

What I Learned

I wanted to practice with the useReducer hook. So all state runs through it instead of useState

The buttons for select tip are actually radio inputs. I found a way to style them to make them look like regular buttons.

Resources

Author