Lifting State Up

Enter temperature in Celsius:

The water would not boil.


Adding a Second Input
Enter temperature in Celsius:
Enter temperature in Fahrenheit:

Writing Conversion Functions

To Celcius: 40

To Fahrenheit: 51.782

Functional: 50.396


Lifting State Up

Currently, both TemperatureInput components independently keep their values in the local state:

Enter temperature in Celsius:
Enter temperature in Fahrenheit:

The water would not boil.