Skip to content

Instantly share code, notes, and snippets.

@Mosquid
Created January 11, 2021 08:42
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 Mosquid/5f4022a1151cf3d6dad6a3b65e2b514a to your computer and use it in GitHub Desktop.
Save Mosquid/5f4022a1151cf3d6dad6a3b65e2b514a to your computer and use it in GitHub Desktop.
headless-wp-medium-p1
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