1.0.6 • Published 6 years ago
switch-witch v1.0.6
Switch Witch
Installation
$ yarn add switch-witch
Usage
import { SwitchWitch, switchImages } from 'switch-witch'
const breakpoint = 768
const sww = new SwitchWitch(breakpoint)
switchImages(sww.isMobile())
sww.onLayoutChange(switchImages)
License
MIT