Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 362 Bytes

history.md

File metadata and controls

12 lines (10 loc) · 362 Bytes

grainbox/history

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()
})