UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

11 lines (9 loc) 318 B
import { useContext } from 'react'; import { FormGroupsContext } from './FormGroupsContext'; /** * Retrieve the form groups management context. Used by inputs to register themselves into a form group. */ export const useFormGroups = () => { const context = useContext(FormGroupsContext); return context; };