"peerDependencies": {
"react": "*",
"react-dom": "*",
"styled-components": "*"
},
import React, { useState } from 'react'
import DayNightSwitch from "@shd/react-day-night-switch";
const App = () => {
const [isDarkMode, setIsDarkMode] = useState(false)
return (
<DayNightSwitch
onChange={() => setIsDarkMode(!isDarkMode)}
checked={isDarkMode}
/>
)
}