Last active
August 7, 2018 18:26
-
-
Save hpierre74/d9e4f81ed21e52b2b75467bb3559ca0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this function could be in the theme or anywhere you see fit | |
// eslint will complain about it, you might get errors if you | |
// use different webpacks bundles | |
export const requireAnimation = animation => | |
require(`react-animations/lib/${animation}`).default; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment