Fix pressing "enter" in time converter reloading the page

ElementalAlchemist 3 weeks ago
parent 369b70bb19
commit ae808eedde

@ -56,7 +56,7 @@ const TimeConverter: Component<TimeConverterProps> = (props) => {
}; };
return ( return (
<form> <div>
<h1>Convert Times</h1> <h1>Convert Times</h1>
<input <input
type="text" type="text"
@ -129,7 +129,7 @@ const TimeConverter: Component<TimeConverterProps> = (props) => {
</label> </label>
</div> </div>
<div>Converted Time: {outputString()}</div> <div>Converted Time: {outputString()}</div>
</form> </div>
); );
}; };

Loading…
Cancel
Save