Created
August 18, 2020 14:19
-
-
Save Mayankgupta688/f088d53413bfa237ee204984a0245423 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
{hasError && <ErrorComponent></ErrorComponent>} | |
{!hasError && ( | |
<section className="App"> | |
<div> | |
<label>First Value:{" "}</label> | |
<input id="firstValue" type="text" value={numerator} onChange={updateValue} /> | |
</div> | |
<div> | |
<label>Second Value:{" "}</label> | |
<input id="secondValue" type="text" value={denominator} onChange={updateValue} /> | |
</div> | |
<div>Output: {executionOutput}</div> | |
<input type="button" onClick={getDivision} value="Divide Values" /> | |
</section> | |
)} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment