Unverified Commit 2bffb160 authored by Pavel Mineev's avatar Pavel Mineev Committed by GitHub

(examples): fix missed peer dependencies (#26069)

Fixes some examples from #25854

- with-kea [live demo](https://stackblitz.com/github/akellbl4/next.js/tree/examples/missed-peer-deps/examples/with-kea)
- with-mobx [live demo](https://stackblitz.com/github/akellbl4/next.js/tree/examples/missed-peer-deps/examples/with-mobx)
- with-mobx-react-lite [live demo](https://stackblitz.com/github/akellbl4/next.js/tree/examples/missed-peer-deps/examples/with-mobx-react-lite)
- with-mobx-state-tree [live demo](https://stackblitz.com/github/akellbl4/next.js/tree/examples/missed-peer-deps/examples/with-mobx-state-tree)

## Documentation / Examples

- [x] Add the StackBlitz button
- [x] Make sure the linting passes
parent cb84bc5d
......@@ -2,6 +2,12 @@
This example uses [kea](https://github.com/keajs/kea).
## Preview
Preview the example live on [StackBlitz](http://stackblitz.com/):
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-kea)
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
......
......@@ -19,6 +19,7 @@
},
"license": "MIT",
"devDependencies": {
"@babel/core": "7.14.5",
"@babel/plugin-proposal-decorators": "^7.1.0"
},
"babel": {
......
......@@ -16,6 +16,12 @@ StoreProvider.js component is used to instantiate the `Store` both on the server
Both components are using a custom hook `useStore` to pull in the `Store` from the provider.
## Preview
Preview the example live on [StackBlitz](http://stackblitz.com/):
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-mobx-react-lite)
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
......
......@@ -14,6 +14,7 @@
"react-dom": "^17.0.1"
},
"devDependencies": {
"@babel/core": "7.14.5",
"@babel/plugin-proposal-class-properties": "^7.1.0"
},
"license": "MIT"
......
......@@ -10,6 +10,12 @@ The trick here for supporting universal mobx is to separate the cases for the cl
The clock, under `components/Clock.js`, has access to the state using the `inject` and `observer` functions from `mobx-react`. In this case Clock is a direct child from the page but it could be deep down the render tree.
## Preview
Preview the example live on [StackBlitz](http://stackblitz.com/):
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-mobx-state-tree)
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
......
......@@ -15,6 +15,7 @@
"react-dom": "^16.7.0"
},
"devDependencies": {
"@babel/core": "7.14.5",
"@babel/plugin-proposal-decorators": "^7.1.2"
},
"license": "MIT"
......
......@@ -10,6 +10,12 @@ The trick here for supporting universal mobx is to separate the cases for the cl
The clock, under `components/Clock.js`, has access to the state using the `inject` and `observer` functions from `mobx-react`. In this case Clock is a direct child from the page but it could be deep down the render tree.
## Preview
Preview the example live on [StackBlitz](http://stackblitz.com/):
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-mobx)
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
......
......@@ -15,6 +15,7 @@
},
"license": "MIT",
"devDependencies": {
"@babel/core": "7.14.5",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-decorators": "^7.1.0"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment