All challenges
UI · Frontend challenge· Frontend UI
Temperature Converter
easy
15m
#ui#react#frontend#state#forms
Build a Temperature Converter component.
Requirements
- Two inputs: one for Celsius, one for Fahrenheit.
- Typing in Celsius updates Fahrenheit, and vice versa.
- Use the formula:
F = C * 9/5 + 32andC = (F - 32) * 5/9. - Allow decimal inputs, but handle empty inputs gracefully (clearing the other input).