DEV Community

HasOne
HasOne

Posted on

Can you rate my React package?

Hi everyone,

my guess was about npm package is like magic when I was trying to install a third-party package, but when I feel compatible with the ecosystem and all about reactjs, I thought it's and can be made with javascript, so I created my first reactjs package for dark mode toggling, what I expect from you is to find an issue, terrible code and if you like please just give me one star to push me forward as you pretty much know!

image

git repo: https://github.com/lifeeric/react-darkmode-toggler
npm: https://www.npmjs.com/package/react-darkmode-toggler

Thanks for supporting me!

Top comments (4)

Collapse
 
kosich profile image
Kostia Palchyk

Nice package!

You can also add css user-select: none; to disable accidental emoji selection

Collapse
 
kosich profile image
Kostia Palchyk

I'd also suggest passing new state to the client callback, indicating on/off switch — it'd be simpler for user to know what state was activated

Collapse
 
hasone profile image
HasOne

I'd like you to add this feature and PR if you love to do, I'm excited to see you there and also to learn this. and I really appreciate you for giving me start and for fork my repo, Thanks A lot!

Collapse
 
hasone profile image
HasOne

I glad to see you here! I was lazy to add this property and likely forgot, Thanks for this issue!