FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
erover-react/src/formik-debug.jsx at master · lpython/erover-react · GitHub
lpython
erover-react
Repository navigation
Code
Issues
Pull requests
10
(10)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
erover-react
/
src
/
formik-debug.jsx
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (42 loc) · 937 Bytes
Breadcrumbs
erover-react
/
src
/
formik-debug.jsx
Copy path
File metadata and controls
44 lines (42 loc) · 937 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import
React
from
'react'
;
import
{
FormikConsumer
}
from
'formik'
;
export
const
Debug
=
(
)
=>
(
<
div
style
=
{
{
margin
:
'3rem 0'
,
borderRadius
:
4
,
background
:
'#f6f8fa'
,
boxShadow
:
'0 0 1px #eee inset'
,
}
}
>
<
div
style
=
{
{
textTransform
:
'uppercase'
,
fontSize
:
11
,
borderTopLeftRadius
:
4
,
borderTopRightRadius
:
4
,
fontWeight
:
500
,
padding
:
'.5rem'
,
background
:
'#555'
,
color
:
'#fff'
,
letterSpacing
:
'1px'
,
}
}
>
Formik State
</
div
>
<
FormikConsumer
>
{
(
{
validationSchema
,
validate
,
onSubmit
,
...
rest
}
)
=>
(
<
pre
style
=
{
{
fontSize
:
'.65rem'
,
padding
:
'.25rem .5rem'
,
overflowX
:
'scroll'
,
fontSize
:
11
,
}
}
>
{
JSON
.
stringify
(
rest
,
null
,
2
)
}
</
pre
>
)
}
</
FormikConsumer
>
</
div
>
)
;
Back
|
FazBrowse Home
|
New Git URL