React Pizza Calculator

This was a quick little project I did after trying to figure out how many pizzas to order for a party. It’s goofy, and was fun to make. It is done using the JavaScript library, React and was completed in probably 30 minutes.

The core functionality of it consists of a text field which is tied to the state of the component. As the text field is altered by user input, so is the state. As the DOM is rerendered, below the text field you will see an output. The value of the state is then inputted into a simple calculation which outputs the amount of pizzas needed for your party. If you have too many people coming to your party you are met with weird gifs.

Links

Submit a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s