UNPKG
@bee-design/ui
Version:
latest (1.1.0)
1.1.0
1.0.22
1.0.21
1.0.20
Bee Design React UI Library.
bee.design
@bee-design/ui
/
es
/
Form
/
hooks
/
useContext.js
11 lines
(10 loc)
•
285 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ useContext }
from
'react'
;
import
{
FormContext
}
from
'../context'
;
var
useFormContext =
function
(
) {
var
formCtx =
useContext
(
FormContext
);
return
{
form
: formCtx.
store
,
disabled
: formCtx.
disabled
, }; };
export
default
useFormContext;