Closed Taieb closed 8 years ago
var Alert = require('react-s-alert').default;
is solving es5 require error
I replaced reactify by Babelify and I used import so I solve this problem...
Hi, I try to test it more with ES5, and fix the docs, but yeah, I encourage you to use ES2015 with Webpack or Babelify
I don't want to change the lib for now. So I've just updated the readme file. You can import it just like @americaru said, it should work.
I am importing Alert with require but I got this error
Otherwise how to migrate from ES5 to ES2015 ?