Happy to announce that I published my first Isolated & Reusable React Component on Bit.dev platform 🎉🎉🎉🎉.
Here is the link DayNightSwitcher.
Description: The accessible day-night theme switcher react component.
Already implemented on my newly developed website which crafted using Tech Stack: Gatsby & Netlify CMS https://navdeepsingh.in/
Hope it will serve the purpose. The benefit of the loosely coupled component is that we can do testing easily and also state management can be done with a personal choice like ContextAPI, Redux, MobX, etc.
Looking for your comments!!
Top comments (6)
Why you are heavenly using
It should be like this and still be accessible.
and into index.scss
also your assertion
In this case, the component should support also a fully un-controlled version, with the optional props
defaultModewith internal state.
Olso the bright should be light.
Also, the typings of
'light' | 'dark'.
I strongly believe the only purpose the author had for this article was to drop a link to their website.
Like a lot of authors recently.
A dislike would be a nice feature.
Well! I just tried to show the implementation, that's it. And certainly no bad to showcase your own website on DEV.to platform.
But you're not providing any value, to anyone. Why don't you edit your post and go through your process?
Its my first reusable component and I am learning. Will surely work on your comments and will try to improve it.