MCPcopy Create free account
hub / github.com/Innei/Pastel / handleLoadingDemo

Function handleLoadingDemo

docs/src/components/Examples/ButtonExamples.tsx:92–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 const [likedButtons, setLikedButtons] = useState<Set<string>>(new Set())
91
92 const handleLoadingDemo = () => {
93 setIsLoading(true)
94 setTimeout(() => setIsLoading(false), 2000)
95 }
96
97 const handleLike = (buttonId: string) => {
98 setLikedButtons((prev) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected