P
P
paulvales2019-11-06 06:50:12
JavaScript
paulvales, 2019-11-06 06:50:12

How to enable decorators in reactjs mobx?

Decided to use mobx instead of redux, swears at @observer:

Support for the experimental syntax 'decorators-legacy' isn't currently enabled

Yesterday I spent 6 hours using different bundles of libraries and tutorials. Working without decorators in mobx is not very convenient, and the manuals are all with decorators. How to fix this error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-11-06
@Robur

Depending on what settings and version of Babel, here is an example solution:
https://github.com/mobxjs/mobx/issues/1352

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question