history
uses history-events
to detect changes in the URL bar.
These changes are then propagated to dependent functions system using reactive()
.
import { reactive, history } from 'grainbox'
reactive(() => {
// Changes in history are reactive.
history()
})