Is it possible to use decorators with create-react-app?

I have understood that since Babel doesn’t support decorators out of the box (because it’s in early stages of definition) create-react-app doesn’t support it as well.

I know that you can eject the generated app and configure Babel to support them, but I don’t want to do that.

Finally, libraries like MobX allow you to use decorator’s behavior without actually using them, with the help of some utility functions like described at https://mobx.js.org/best/decorators.html

Is there something similar for React?

104 thoughts on “Is it possible to use decorators with create-react-app?”