How to use the use-sidecar.exportSidecar 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-remove-scroll / src / sidecar.tsx View on Github external
import { exportSidecar } from 'use-sidecar';
import { RemoveScrollSideCar } from './SideEffect';
import { effectCar } from './medium';

export default exportSidecar(effectCar, RemoveScrollSideCar);
github theKashey / react-focus-lock / src / sidecar.js View on Github external
import { exportSidecar } from 'use-sidecar';
import FocusTrap from './Trap';
import { mediumSidecar } from './medium';

export default exportSidecar(mediumSidecar, FocusTrap);
github theKashey / react-focus-on / src / sidecar.ts View on Github external
import { exportSidecar } from 'use-sidecar';

import 'react-focus-lock/sidecar';
import 'react-remove-scroll/sidecar';

import { Effect } from './Effect';
import { effectCar } from './medium';

export default exportSidecar(effectCar, Effect);

use-sidecar

Sidecar code splitting utils

MIT
Latest version published 7 days ago

Package Health Score

83 / 100
Full package analysis