MCPcopy
hub / github.com/joshwcomeau/use-sound / useOnMount

Function useOnMount

src/use-on-mount.ts:3–5  ·  view source on GitHub ↗
(callback: React.EffectCallback)

Source from the content-addressed store, hash-verified

1import * as React from 'react';
2
3export default function useOnMount(callback: React.EffectCallback) {
4 React.useEffect(callback, []);
5}

Callers 1

useSoundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…