-
Notifications
You must be signed in to change notification settings - Fork 224
Update Example Code in Readme #33
Comments
The ES2015 class is the source code but the |
Few hours ago, I installed it, and require('react-sidebar') is not working. to make it work, i am actually using it as
Instead of
I am not good in new module syntax, But in below file, there is no module.exports , so just require('react-sidebar') wont work. |
@balloob Curious, why did you close this issue? Seems like it might be a good idea to at least update the readme. Since ES6 modules are still fairly new, it might be a good idea to instruct folks using ES5 that they will need to write Related discussion: esnext/es6-module-transpiler#85 |
My bad. Both of you are right. Updated the README: 4241bbd |
I installed react-sidebar today and got version 2.1.1 from npm. I think latest version uses new es7 module syntax.
But Readme in github uses commonjs syntax.
The text was updated successfully, but these errors were encountered: