ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
13 lines (10 loc) • 474 B
text/typescript
import { createContext } from 'react';
/**
* Context allowing inputs to register to a specific group.
* This enables other components in the group to access group properties such as its
* validation (valid/invalid) or whether its inputs have been updated (dirty/pristine).
*
* This should only be used through a FormGroupContextProvider.
*/
export const FormGroupContext = createContext<FormGroupContextValue>(undefined);
export type FormGroupContextValue = string;