How to use the @shopify/react-universal-provider.createUniversalProvider function in @shopify/react-universal-provider

To help you get started, we’ve selected a few @shopify/react-universal-provider 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 Shopify / quilt / packages / react-csrf-universal-provider / src / CsrfUniversalProvider.ts View on Github external
import {CsrfTokenContext} from '@shopify/react-csrf';
import {createUniversalProvider} from '@shopify/react-universal-provider';

export const CsrfUniversalProvider = createUniversalProvider<
  string | undefined
>('csrf-token', CsrfTokenContext);

@shopify/react-universal-provider

Factory function and utilities to create self-serializing/deserializing providers that work for isomorphic applications

MIT
Latest version published 5 months ago

Package Health Score

53 / 100
Full package analysis

Popular @shopify/react-universal-provider functions