Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook for cross-component event communication using an emit/on pattern.
const eventEmitter = useEventEmitter(); const [state, setState] = useState(); useEffect(() => { eventEmitter.emit("state:update", state); }, [state]);
const eventEmitter = useEventEmitter(); eventEmitter.on("state:update", (state) => { // do something });