0.1.1 • Published 4 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
4 months ago
0.0.0-dev-20250219035621
4 months ago
0.0.0-dev-20240918142832
9 months ago
0.1.0
9 months ago
0.0.5
11 months ago
0.0.0-dev-20240306090541
1 year ago
0.0.0-dev-20240306101351
1 year ago
0.0.0-dev-20240306082703
1 year ago
0.0.0-dev-20240306080941
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.0-dev-20240305103701
1 year ago
0.0.0-dev-20240305094038
1 year ago
0.0.0-dev-20240305104334
1 year ago
0.0.0-dev-20240305100013
1 year ago
0.0.1
1 year ago
0.0.0-dev-20240228102043
1 year ago