yarn add mobx mobx-react mobx-persist
yarn add --save-dev @babel/plugin-proposal-class-properties @babel/plugin-proposal-decorators
module.exports = function (api) {
api.cache(true);
return {
...
plugins: [
["@babel/plugin-proposal-decorators", { legacy: true }],
["@babel/plugin-proposal-class-properties", { loose: false }],
],
};
};
🚀🚀🚀