Last active
October 7, 2020 11:04
-
-
Save sverhoeven/7c4c35efd9febeaa7186d833be2252aa to your computer and use it in GitHub Desktop.
run-cpp-on-web: react
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
function Result(props) { | |
const root = props.root; | |
let message = 'Not submitted'; | |
if (root !== undefined) { | |
message = 'Function root is approximately at x = ' + root.toFixed(2); | |
} | |
return <div>{message}</div>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment