MCPcopy Create free account
hub / github.com/TanStack/devtools / Mounted

Function Mounted

examples/preact/basic/src/index.tsx:131–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129})
130
131function Mounted() {
132 const c = useContext(Context)
133 console.log(c)
134 return (
135 <p
136 onClick={() => {
137 c.setCount(c.count + 1)
138 }}
139 >
140 {c.count}
141 <hr />
142 </p>
143 )
144}
145
146function App() {
147 const [state, setState] = useState(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected