Scope context
const ScopeContext: ComponentContext<OutputScope>Accessor
Section titled “Accessor”import { useScope } from "@alloy-js/core";
const myContext = useScope();Context interface
Section titled “Context interface”Factory
Section titled “Factory”import { createScope } from "@alloy-js/core";
function createScope<TScope extends OutputScope, Args extends unknown[]>(ctor: new (...args: Args) => TScope, ...args: Args): TScope;