Using localStorage to store navbar color and calculator values.

This commit is contained in:
Roland 2024-10-05 14:06:13 -06:00
parent 11dc370ed9
commit b643728b96
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
7 changed files with 81 additions and 53 deletions

View file

@ -13,7 +13,7 @@ export function TemperatureCalculator() {
const handleInputChange = (e, {name, value}) => {
if (value === '') {
// User has cleared the input;
setState({volt: '', ohm: '', amp: ''});
setState({celsius: '', fahrenheit: '', kelvin: ''});
return
}