Alt @decorators In React-native
I am using the Alt library (Flux implementation) with React-Native. I really like the 'alt/utils/decorators' and 'alt/utils/connectToStores' but I cannot use these @decorators bec
Solution 1:
Babel 6 currently intends for the transform-decorators
to support the upcoming change to the decorators proposal, which will make it behave quite differently from the existing one.
If you need decorators in Babel 6 with the same semantics as decorators in Babel 5, your best option is to use babel-plugin-transform-decorators-legacy.
Solution 2:
See 0.16 release notes:
Decorators won't work until T2645 lands in Babel.
https://github.com/facebook/react-native/blob/master/breaking-changes.md
Once this is fixed then they should begin working.
Post a Comment for "Alt @decorators In React-native"