Skip to content

Commit

Permalink
Update README.md (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcattan authored Oct 28, 2024
1 parent cf43481 commit 0a43526
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,6 @@ And if you haven't installed all the peer dependencies, you should probably do t
npm install --save mobx mobx-react react-router
```

Although, mobx v6 deprecated decorators, this library still requires to enable them.
Below is an example of configuration using `vite.js`:

```
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
target: 'es2015',
plugins: [
react({
babel: {
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
],
},
}),
],
});
```

For more details, please consult the documentation of [mobx v6](https://mobx.js.org/enabling-decorators.html) on decorators.


## Usage

`index.js`
Expand Down Expand Up @@ -112,7 +88,7 @@ export default class App extends Component {
}
```

Check our live [example](https://stackblitz.com/edit/github-bje76z-uyn64v?file=src%2Fmain.jsx).
Check our live [example](https://stackblitz.com/edit/github-bje76z-uyn64v?file=README.md) with Vite.js.

### HashRouter

Expand Down

0 comments on commit 0a43526

Please sign in to comment.