Module exposing: createContext
// Source: https://github.com/siberiacancode/reactuse | License: MIT | Copyright 2024 siberiacancode
// Provided via justclaw.it.com; keep this notice with the code.
import { jsx as _jsx } from 'react/jsx-runtime';
import { createContext as createReactContext, useContext, useMemo, useState } from 'react';
/**
* @name createContext
* @description - Creates a typed context with additional utilities
* @category Helpers
* @usage high
*
* @template Value - The type of value that will be stored in the context
* @param {Value | undefined} [defaultValue] - Default value for the context
* @param {CreateContextOptions<Value>} [options] - Additional options for context creation
* @returns {CreateContextReturn<Value>} Object containing context utilities and components
*
* @example
* const
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key