scrolls to the top of the browser window on navigation. does nothing when server rendering.
const choo = require('choo')
const scrollToTop = require('choo-scroll-to-top')
const app = choo()
app.use(scrollToTop)
app.mount('body')
scrolls to the top of the browser window on navigation. does nothing when server rendering.
const choo = require('choo')
const scrollToTop = require('choo-scroll-to-top')
const app = choo()
app.use(scrollToTop)
app.mount('body')
npm i choo-scroll-to-top
0
1.1.0
MIT