emitter
DISCONTINUED
event
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
emitter
-
I was asked to implement Event Emitter in an interview. How would you approach it? Link is attached.
I have written the best event emitter in the world in javascript. It is here https://github.com/hackdonalds/emitter
event
-
Bit-about/event and bit-about/state are released Tiny React idiomatic libs
Hey guys! I've released complementary libraries BitAboutState and BitAboutEvent and I'd like to hear your feedback. I wanted to achieve the feeling that these libraries "should be built into React".
Key features:
100% Typescript with state types deduction
Efficient and hook-based
With extra static access to core functionality (without hook)
No centralized providers (decentralized states and events)
Tiny - max 2.5kB
These libraries force, in my opinion, the cleanest way to design code architecture in React projects.
The libraries are production-ready and this week I introduced them to fresh React-Native commercial projects in my company. We will see them on the battlefield :)
BitAboutEvent: https://github.com/bit-about/event
BitAboutState: https://github.com/bit-about/state
-
@bit-about/event and @bit-about/state are released π Tiny and 100% idiomatic libraries for type-safe state management with side-effects (like in Redux-like approaches)
BitAboutEvent: https://github.com/bit-about/event
What are some alternatives?
mitt - π₯ Tiny 200 byte functional event emitter / pubsub.
state - π Tiny and powerful React hook-based state management library.
react-native-use-persisted-state - πΎ Simple persisted state in react-native
react-use-wizard - π§ A React wizard (stepper) builder without the hassle, powered by hooks.
react-hotkeys-hook - React hook for using keyboard shortcuts in components.
use-color - πΌπΌπΌ The powerful color hook that all designers deserve. β¨ Parse and stringify that just works & π¦Ύ Strict type checking at compile time
use-clamp-text - react hook to clamp multiline text to a given height in a responsive way and with extreme flexibility (under 2.5kb)