svelte-context-enhanced

Svelte Context Enhanced

Docs

Installation

npm i -D @raythurnevoid/svelte-context-enhanced

Usage

const [setContext, getContext] = createContext<string>();

// Parent.svelte
setContext('test');

// Child.svelte
const value = getContext();

Top categories

Loading Svelte Themes