0.1.1 • Published 7 months ago
@yme/react-context v0.1.1
@yme/react-context
Create Safe/Optional Context
Installation
npm install @yme/react-context
Usage
import { createContext, createOptionalContext, createSafeContext } from '@yme/react-context';
interface WhoContext {
name: string;
}
// [Provider, useContext, Context]
const Who = createContext<WhoContext>({
name: 'Who',
});
// Same as createSafeContext
// [Provider, useContext, Context]
const OptionalWho = createOptionalContext<WhoContext>('Who');
License
MIT
0.1.1
7 months ago
0.0.0-dev-20250219035621
7 months ago
0.0.0-dev-20240918142832
12 months ago
0.1.0
12 months ago
0.0.5
1 year ago
0.0.0-dev-20240306090541
2 years ago
0.0.0-dev-20240306101351
2 years ago
0.0.0-dev-20240306082703
2 years ago
0.0.0-dev-20240306080941
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.0-dev-20240305103701
2 years ago
0.0.0-dev-20240305094038
2 years ago
0.0.0-dev-20240305104334
2 years ago
0.0.0-dev-20240305100013
2 years ago
0.0.1
2 years ago
0.0.0-dev-20240228102043
2 years ago