/FM-tip-calculator

Frontend Mentor Tip Calculator Challenge

Primary LanguageJavaScript

Frontend Mentor - Tip calculator app solution

This is a solution to the Tip calculator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Calculate the correct tip and total cost of the bill per person

Screenshot

How the app behaves when open in a smartphone

How the app behaves when open in a tablet

How the app behaves when open in a desktop

Links

My process

Built with

What I learned

While building this project I learned to use global states using

createContext();

From now on I know a better way to deal with projects that demands the use of shared states.

Author

Acknowledgments

Use global states!!!