informed
Version:
A lightweight framework and utility for building powerful forms in React applications
12 lines (9 loc) • 327 B
JavaScript
import { useContext } from 'react';
import { ScopeContext } from '../Context.js';
import { useFieldState } from './useFieldState.js';
/* ----------------------- useScope ----------------------- */
function useScopedState() {
var scope = useContext(ScopeContext);
return useFieldState(scope);
}
export { useScopedState };