Contents
Challenge:
Build a “Temperature Converter” component that has two input fields that converts temperature from Celsius to Fahrenheit and viceversa.
- Celsius field should default to 0 and Fahrenheit field should default to 32.
- As and when the user types a number in Celsius field, it should update the Fahrenheit field.
- And similarly when the user types a number in Fahrenheit field, it should update Celsius field.
- If the user types a non number, it should reset it to default values.
The component should be self-contained and should not use any external libraries, CSS, etc.
Prerequisite:
- You have a Lightning enabled Developer Edition Org.