Skip to content

Instantly share code, notes, and snippets.

@sverhoeven
Created October 2, 2020 09:16
Show Gist options
  • Save sverhoeven/2e7d7cf5ccedd63a7632a6daa198aabb to your computer and use it in GitHub Desktop.
Save sverhoeven/2e7d7cf5ccedd63a7632a6daa198aabb to your computer and use it in GitHub Desktop.
run-cpp-on-web: react
<form onSubmit={handleSubmit}>
<label>
Tolerance:
<input name="tolerance" type="number" value={tolerance} onChange={onToleranceChange}/>
</label>
<label>
Initial guess:
<input name="initial_guess" type="number" value={initial_guess} onChange={onGuessChange}/>
</label>
<input type="submit" value="Submit" />
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment