Edit Readme

This commit is contained in:
Valentin Palkovic 2022-12-06 17:07:05 +01:00
parent 1dbaac5521
commit a376841ecc

View File

@ -219,7 +219,7 @@ Please consider, that parameters are not deep merged. If you set `nextjs.appDire
#### Default Navigation Context #### Default Navigation Context
The default values on the stubbed navigation context are as follows (see [globals](https://storybook.js.org/docs/react/essentials/toolbars-and-globals#globals) for more details on how globals work) The default values on the stubbed navigation context are as follows:
```ts ```ts
const defaultNavigationContext = { const defaultNavigationContext = {
@ -248,7 +248,7 @@ const defaultNavigationContext = {
#### Global Defaults #### Global Defaults
Global defaults can be set in [preview.js](https://storybook.js.org/docs/react/configure/overview#configure-story-rendering) and will be shallowly merged with the default router. Global defaults can be set in [preview.js](https://storybook.js.org/docs/react/configure/overview#configure-story-rendering) and will be shallowly merged with the default navigation context.
```js ```js
// .storybook/preview.js // .storybook/preview.js