Skip to content

Instantly share code, notes, and snippets.

@Mayankgupta688
Created August 18, 2020 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mayankgupta688/f088d53413bfa237ee204984a0245423 to your computer and use it in GitHub Desktop.
Save Mayankgupta688/f088d53413bfa237ee204984a0245423 to your computer and use it in GitHub Desktop.
<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