React Wow is not a constructor

By | July 14, 2018
Questions:

I am trying to add Wow.js to my react app. Here is a link to my codesandbox. I Have imported wow.js 1.1.2 and animcate.min.css 3.5.2. In my index.js I have imported animate.min.css

import "./animate.min.css";

and in my App.js I have imported and initaized wow.js

import WOW from "wowjs";

...
componentDidMount() {
    const wow = new WOW.WOW();
    wow.init();
}

I am getting the following error:

_wowjs2.default.WOW is not a constructor

Thanks for any and all help!

Answers:

Leave a Reply

Your email address will not be published. Required fields are marked *