UNPKG
antd-v5
Version:
latest (5.14.1)
5.14.1
An enterprise-class UI design language and React components implementation
ant.design
antd-v5
/
es
/
form
/
hooks
/
useFormInstance.js
8 lines
•
188 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ useContext }
from
'react'
;
import
{
FormContext
}
from
'../context'
;
export
default
function
useFormInstance
(
) {
const
{ form } =
useContext
(
FormContext
);
return
form; }