MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / TooltipContent

Function TooltipContent

stories/examples/Tooltip/Update.js:8–21  ·  view source on GitHub ↗
({ scheduleUpdate })

Source from the content-addressed store, hash-verified

6const longText = 'Long tooltip content to test scheduleUpdate';
7
8function TooltipContent({ scheduleUpdate }) {
9 const [text, setText] = useState(shortText);
10
11 useEffect(() => {
12 const intervalId = setInterval(() => {
13 setText(text === shortText ? longText : shortText);
14 scheduleUpdate();
15 }, 2000);
16
17 return () => clearInterval(intervalId);
18 });
19
20 return <div>{text}</div>;
21}
22
23function Example(props) {
24 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…