@atlaskit/form
Version:
A form allows people to input information.
15 lines • 379 B
JavaScript
import { createContext } from 'react';
/**
* __Form context__
*
* A form context creates a context for the field values and allows them to be accessed by the children.
*/
export const FormContext = /*#__PURE__*/createContext({
registerField: function () {
return () => {};
},
getCurrentValue: () => undefined,
subscribe: function () {
return () => {};
}
});