Created
January 11, 2021 08:42
-
-
Save Mosquid/5f4022a1151cf3d6dad6a3b65e2b514a to your computer and use it in GitHub Desktop.
headless-wp-medium-p1
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 Form({ isLoading, isSent, hasError, handler }) { | |
return ( | |
<form onSubmit={handler}> | |
<div>isLoading: {isLoading ? "Loading" : "false"}</div> | |
<div>isSent: {isSent ? "Sent" : "false"}</div> | |
<div>Error: {hasError || "null"}</div> | |
</form> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment