insin / gatsby-plugin-dark-mode

A Gatsby plugin which handles some of the details of implementing a dark mode theme
MIT License
68 stars 19 forks source link

Hooks support #1

Open lannonbr opened 5 years ago

lannonbr commented 5 years ago

Would it be okay to open a PR to implement a useThemeToggler React hook so it can be some variables on the side rather than a render prop? I think having both forms would be a good state to have so you can choose a render prop or a react hook depending on your use case