MCPcopy Create free account
hub / github.com/HiDeoo/YaTA / constructor

Method constructor

src/components/ViewStack.tsx:26–33  ·  view source on GitHub ↗

* Creates a new instance of the component. * @class * @param props - The props of the component.

(props: Props)

Source from the content-addressed store, hash-verified

24 * @param props - The props of the component.
25 */
26 constructor(props: Props) {
27 super(props)
28
29 this.state = {
30 ...initialState,
31 stack: [props.initialView],
32 }
33 }
34
35 /**
36 * Renders the component.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected