This repository was archived by the owner on Dec 31, 2020. It is now read-only.
This repository was archived by the owner on Dec 31, 2020. It is now read-only.
mobx-react does not support "public class fields syntax" #719
Closed
Description
We are using "public class fields syntax" everywhere in current react projects. We hope mobx-react could support it.
So, now this is going to work:
@observer
export default class extends Component {
render() {
return ...;
}
}
And now, this is NOT going to work:
@observer
export default class extends Component {
render = () => (<>...</>);
}
Hope it could work soon.