taggedComponent
import { taggedComponent } from "@alloy-js/core";
function taggedComponent<TProps = Props>(tag: symbol, component: Component<TProps>): Component<TProps> & Required<Pick<Component<TProps>, "tag">>;
Parameters
Section titled “Parameters”tag |
|
component |
|
Returns
Section titled “Returns”Component<TProps> & Required<Pick<Component<TProps>, “tag”>>