MCPcopy Create free account
hub / github.com/codebucks27/react-portfolio-final / handleClick

Function handleClick

src/subComponents/SoundBar.jsx:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 const [click, setClick] = useState(false);
57
58 const handleClick = () => {
59 setClick(!click);
60
61 if(!click){
62 ref.current.play();
63 }else{
64 ref.current.pause();
65 }
66 }
67 return (
68 <Box onClick={() => handleClick()}>
69 <Line $click={click}/>

Callers 1

SoundBarFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected