How to use the uniforms/context.Provider function in uniforms

To help you get started, we’ve selected a few uniforms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vazco / uniforms / packages / uniforms-unstyled / __tests__ / _mount.tsx View on Github external
export default function mount(children, value) {
  if (value === undefined) return enzyme(children);
  return enzyme(children, {
    wrappingComponent: context.Provider,
    wrappingComponentProps: { value: value.context },
  });
}
github vazco / uniforms / packages / uniforms-semantic / __tests__ / _mount.tsx View on Github external
export default function mount(children, value) {
  if (value === undefined) return enzyme(children);
  return enzyme(children, {
    wrappingComponent: context.Provider,
    wrappingComponentProps: { value: value.context },
  });
}
github vazco / uniforms / packages / uniforms-bootstrap4 / __tests__ / _mount.tsx View on Github external
export default function mount(children, value) {
  if (value === undefined) return enzyme(children);
  return enzyme(children, {
    wrappingComponent: context.Provider,
    wrappingComponentProps: { value: value.context },
  });
}
github vazco / uniforms / packages / uniforms-material / __tests__ / _mount.tsx View on Github external
export default function mount(children, value) {
  if (value === undefined) return enzyme(children);
  return enzyme(children, {
    wrappingComponent: context.Provider,
    wrappingComponentProps: { value: value.context },
  });
}
github vazco / uniforms / packages / uniforms-bootstrap3 / __tests__ / _mount.tsx View on Github external
export default function mount(children, value) {
  if (value === undefined) return enzyme(children);
  return enzyme(children, {
    wrappingComponent: context.Provider,
    wrappingComponentProps: { value: value.context },
  });
}
github vazco / uniforms / packages / uniforms / __tests__ / _mount.tsx View on Github external
export default function mount(children, value) {
  if (value === undefined) return enzyme(children);
  return enzyme(children, {
    wrappingComponent: context.Provider,
    wrappingComponentProps: { value: value.context },
  });
}
github vazco / uniforms / packages / uniforms-antd / __tests__ / _mount.tsx View on Github external
export default function mount(children, value) {
  if (value === undefined) return enzyme(children);
  return enzyme(children, {
    wrappingComponent: context.Provider,
    wrappingComponentProps: { value: value.context },
  });
}