How to use mini-create-react-context - 5 common examples

To help you get started, we’ve selected a few mini-create-react-context 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 makuga01 / dnsFookup / FE / node_modules / react-router / esm / react-router.js View on Github external
var createNamedContext = function createNamedContext(name) {
  var context = createContext();
  context.displayName = name;
  return context;
};
github makuga01 / dnsFookup / FE / node_modules / react-router / esm / react-router.js View on Github external
var createNamedContext$1 = function createNamedContext(name) {
  var context = createContext();
  context.displayName = name;
  return context;
};
github whawker / react-jsx-highcharts / packages / react-jsx-highcharts / src / components / HighchartsContext / index.js View on Github external
import createContext from 'mini-create-react-context';

const HighchartsContext = createContext();

export const { Consumer, Provider } = HighchartsContext;
export default HighchartsContext;
github whawker / react-jsx-highcharts / packages / react-jsx-highcharts / src / components / ChartContext / index.js View on Github external
import createContext from 'mini-create-react-context';

const ChartContext = createContext();

export const { Consumer, Provider } = ChartContext;
export default ChartContext;
github whawker / react-jsx-highcharts / packages / react-jsx-highcharts / src / components / SeriesContext / index.js View on Github external
import createContext from 'mini-create-react-context';

const SeriesContext = createContext();

export const { Consumer, Provider } = SeriesContext;
export default SeriesContext;

mini-create-react-context

Smaller Polyfill for the proposed React context API

MIT
Latest version published 4 years ago

Package Health Score

55 / 100
Full package analysis

Popular mini-create-react-context functions