Skip to content

Instantly share code, notes, and snippets.

@JoshBarr
Last active January 20, 2019 23:21
Show Gist options
  • Save JoshBarr/f302ebf7f43ea596ad6a to your computer and use it in GitHub Desktop.
Save JoshBarr/f302ebf7f43ea596ad6a to your computer and use it in GitHub Desktop.
Flickity React integration
@irisSchaffer
Copy link

If you want to get around this, you'll have to require() flickity, where you need it, rather than importing it :)

@cengizdemir
Copy link

Use this;
Helper:
export function onlyClient(callback) {
if (typeof window !== 'undefined') {
callback();
}
}

Using: onlyClient(() => {
....
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment