Open DaveStein opened 8 years ago
It's decorator syntax:
https://github.com/wycats/javascript-decorators/blob/master/README.md
I believe there have been some spec changes of late so babel has dropped support. You can use it as a standard function though.
e..g
export default local(...)(MyComponent);
Explanation: http://babeljs.io/docs/plugins/transform-decorators/ Workaround: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy And: http://technologyadvice.github.io/es7-decorators-babel6/
untested but may work for you.
My compiler blows up at the sight of
@local
- what special annotation is that?