ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
14 lines • 537 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFormGroups = void 0;
const react_1 = require("react");
const FormGroupsContext_1 = require("./FormGroupsContext.cjs");
/**
* Retrieve the form groups management context. Used by inputs to register themselves into a form group.
*/
const useFormGroups = () => {
const context = (0, react_1.useContext)(FormGroupsContext_1.FormGroupsContext);
return context;
};
exports.useFormGroups = useFormGroups;
//# sourceMappingURL=useFormGroups.js.map