Skip to content

Instantly share code, notes, and snippets.

@reddyonrails
Last active May 26, 2020 23:37
Show Gist options
  • Save reddyonrails/e68c05df45766a488016d965eb1b2258 to your computer and use it in GitHub Desktop.
Save reddyonrails/e68c05df45766a488016d965eb1b2258 to your computer and use it in GitHub Desktop.
formik-debug.js
{debug && (
<>
<pre style={{ textAlign: "left" }}>
<strong>Values</strong>
<br />
{JSON.stringify(values, null, 2)}
</pre>
<pre style={{ textAlign: "left" }}>
<strong>Values</strong>
<br />
{JSON.stringify(initialValues, null, 2)}
</pre>
<pre style={{ textAlign: "left" }}>
<strong>Errors</strong>
<br />
{JSON.stringify(errors, null, 2)}
</pre>
</>
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment