2.0.0 • Published 6 years ago
react-event-horizon v2.0.0
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