Skip to content
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
@jim-king-2000

Description

@jim-king-2000

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions