ManuelDeLeon / viewmodel-react

Create your React components with view models.
MIT License
24 stars 3 forks source link

ES7 Decorators #16

Open joshua1 opened 7 years ago

joshua1 commented 7 years ago

Hi @ManuelDeLeon , How do we use the ViewModel-react lib with Es7 decorators given we are using libs that use the ES7 decorators i.e https://github.com/azazdeaz/react-gsap-enhancer

ManuelDeLeon commented 7 years ago

Make me a repro. It should work with transform-decorators-legacy.

{
  "presets": ["es2015", "stage-0", "react"],
  "plugins": [ "transform-decorators-legacy", "viewmodel-react-plugin"]
}