react-event-horizon
v2.0.0
Published
Just draw a line in the sand, and no update will pass it
Downloads
3
Readme
event horizon
Just before the Black Hole.
import {EventHorizon} from 'react-event-horizon';
<UpdateSource>
Will be updated
<EventHorizon>
will NOT be updated
</EventHorizon>
<EventHorizon anyProp={anything}>
will update when anyProp updates
</EventHorizon>
<EventHorizon onUpdate={() => alert('updated')} prop={prop}>
will update and trigger onUpdate (only) when prop updates
</EventHorizon>
</UpdateSource>
Licence
MIT