MCPcopy Create free account
hub / github.com/codemistic/Web-Development / themeToggler

Function themeToggler

Modern-Portfolio/src/App.js:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }, [theme]);
25
26 const themeToggler = () =>{
27 if(theme === 'light-theme'){
28 setTheme('dark-theme');
29 setChecked(false)
30 }else{
31 setTheme('light-theme');
32 setChecked(true)
33 }
34 }
35
36 return (
37 <div className="App">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected