Skip to content

Commit cbd78df

Browse files
committed
docs: solve docs error
1 parent e7d753d commit cbd78df

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

examples/module-federation/mf-react-component/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Dev MF module
1212
nx run @examples/mf-remote:dev
1313
```
1414

15-
2. Use Storybook to develop component.
15+
2. Use Storybook to development component.
1616

1717
```
1818
nx run @examples/mf-react-component:storybook

website/docs/en/guide/advanced/module-federation.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ export default defineConfig({
4848
// for production, add online assetPrefix here
4949
assetPrefix: 'http://localhost:3001/mf',
5050
},
51-
// for storybook to dev
51+
// for Storybook to dev
5252
dev: {
5353
assetPrefix: 'http://localhost:3001/mf',
5454
},
55-
// for storybook to dev
55+
// for Storybook to dev
5656
server: {
5757
port: 3001,
5858
},
@@ -88,9 +88,9 @@ However, if you want this Rslib Module to consume other producers at the same ti
8888

8989
## Develop Module Federation remote module
9090

91-
Rslib supports use `storybook` to develop Module Federation Rslib module
91+
Rslib support using Storybook to development Module Federation Rslib module.
9292

93-
#### 1. install storybook and rsbuild storybook addon
93+
#### 1. Install Storybook and Rsbuild Storybook addon
9494

9595
<PackageManagerTabs command="install storybook storybook-addon-rslib @module-federation/storybook-addon -D" />
9696

@@ -117,7 +117,7 @@ Rslib supports use `storybook` to develop Module Federation Rslib module
117117
/>
118118
This chapter will use `React App` as an example later.
119119

120-
#### 2. create `.storybook/main.ts` and add addons
120+
#### 2. Create `.storybook/main.ts` and add addons
121121

122122
```ts title=".storybook/main.ts" {13-35}
123123
import { dirname, join } from 'node:path';
@@ -167,7 +167,7 @@ export default config;
167167
#### 3. Start writing stories
168168

169169
```ts title="stories/index.stories.tsx" {1-2}
170-
// load your remote module here, storybook like a host app
170+
// Load your remote module here, Storybook will act as the host app.
171171
import { Counter } from 'rslib-module';
172172

173173
const Component = () => <Counter />;
@@ -194,9 +194,9 @@ export const Primary = {};
194194
}
195195
```
196196

197-
#### 5. Start storybook app
197+
#### 5. Start Storybook app
198198

199-
There you go, start Storybook with `npx storybook`.
199+
There you go, start Storybook with `npx storybook dev`.
200200

201201
## Consume other Module Federation modules
202202

0 commit comments

Comments
 (0)