solid-syntax-context
Installation
SKILL.md
solid-syntax-context
Quick Reference
Context API Surface
| Function | Import | Purpose |
|---|---|---|
createContext<T>(default?) |
solid-js |
Create a context object with optional default value |
useContext(ctx) |
solid-js |
Read the nearest Provider's value for a context |
<Ctx.Provider value={v}> |
(from context object) | Supply a value to all descendants |