Skip to content

Commit

Permalink
Remove babel & legacy decorators
Browse files Browse the repository at this point in the history
If you want to use decorators check out the following docs: https://nextjs.org/docs/advanced-features/compiler#legacy-decorators
  • Loading branch information
HaNdTriX committed Sep 7, 2022
1 parent 9af5ea0 commit b86306e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions examples/with-mobx-state-tree/.babelrc

This file was deleted.

4 changes: 1 addition & 3 deletions examples/with-mobx-state-tree/components/SampleComponent.js
Expand Up @@ -3,8 +3,6 @@ import Link from 'next/link'
import { inject, observer } from 'mobx-react'
import Clock from './Clock'

@inject('store')
@observer
class SampleComponent extends React.Component {
componentDidMount() {
this.props.store.start()
Expand Down Expand Up @@ -32,4 +30,4 @@ class SampleComponent extends React.Component {
}
}

export default SampleComponent
export default inject('store')(observer(SampleComponent))

0 comments on commit b86306e

Please sign in to comment.