MCPcopy Create free account
hub / github.com/szhsin/react-menu / Example.js

File Example.js

example/src/components/Example.js  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import React, { useState, useEffect, useRef } from 'react';
2import { Highlight, themes } from 'prism-react-renderer';
3import { ControlledMenu, useMenuState } from '@szhsin/react-menu';
4import { bem } from '../utils';

Callers

nothing calls this directly

Calls 4

useDomInfoFunction · 0.90
useThemeFunction · 0.90
useMenuStateFunction · 0.85
getBtnMouseEventsFunction · 0.85

Tested by

no test coverage detected