How to use the use-sidecar.createMedium function in use-sidecar

To help you get started, we’ve selected a few use-sidecar 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 theKashey / react-focus-lock / src / medium.js View on Github external
import { createMedium, createSidecarMedium } from 'use-sidecar';

export const mediumFocus = createMedium(
  {},
  ({ target, currentTarget }) => ({ target, currentTarget }),
);
export const mediumBlur = createMedium();

export const mediumEffect = createMedium();

export const mediumSidecar = createSidecarMedium({
  async: true,
});
github theKashey / react-focus-lock / src / medium.js View on Github external
import { createMedium, createSidecarMedium } from 'use-sidecar';

export const mediumFocus = createMedium(
  {},
  ({ target, currentTarget }) => ({ target, currentTarget }),
);
export const mediumBlur = createMedium();

export const mediumEffect = createMedium();

export const mediumSidecar = createSidecarMedium({
  async: true,
});
github theKashey / react-focus-lock / src / medium.js View on Github external
import { createMedium, createSidecarMedium } from 'use-sidecar';

export const mediumFocus = createMedium(
  {},
  ({ target, currentTarget }) => ({ target, currentTarget }),
);
export const mediumBlur = createMedium();

export const mediumEffect = createMedium();

export const mediumSidecar = createSidecarMedium({
  async: true,
});

use-sidecar

Sidecar code splitting utils

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis