Skip to content

Commit 8297bb8

Browse files
committed
docs(website): update docs
1 parent 5459ef0 commit 8297bb8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+251
-251
lines changed

website/docs/advanced-guides/persistence.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Reactant provides a plugin for persistence: `reactant-storage`.
1313

1414
## Installation
1515

16-
```bash
17-
yarn add reactant-storage
16+
```bash npm2yarn
17+
npm install reactant-storage
1818
```
1919

2020
## Example

website/docs/advanced-guides/routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Reactant provides a plugin for routing: reactant-router.
1313

1414
## Installation
1515

16-
```bash
17-
yarn add reactant-router
16+
```bash npm2yarn
17+
npm install reactant-router
1818
```
1919

2020
## Example

website/docs/advanced-guides/server-side-rendering.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ cd reactant-ts-ssr
1717

1818
- Install `reactant-ssr`.
1919

20-
```bash
21-
yarn add reactant-ssr
20+
```bash npm2yarn
21+
npm install reactant-ssr
2222
```
2323

2424
- Install other `Babel` development dependencies.
2525

26-
```bash
27-
yarn add -D @babel/core @babel/plugin-proposal-class-properties @babel/plugin-proposal-decorators babel-plugin-parameter-decorator babel-plugin-transform-typescript-metadata
26+
```bash npm2yarn
27+
npm install -D @babel/core @babel/plugin-proposal-class-properties @babel/plugin-proposal-decorators babel-plugin-parameter-decorator babel-plugin-transform-typescript-metadata
2828
```
2929

3030
## Configuration
@@ -127,7 +127,13 @@ import { app } from "./_app";
127127
export default app.container.get(CounterView).component;
128128
```
129129

130-
4. run `yarn dev` and visit `http://localhost:3000`.
130+
4. Start the project.
131+
132+
```bash npm2yarn
133+
npm dev
134+
```
135+
136+
and visit `http://localhost:3000`.
131137

132138
## Q&A
133139

website/docs/api/reactant-di/classes/optional.Optional.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ custom_edit_url: null
2323

2424
#### Defined in
2525

26-
[packages/reactant-di/src/optional.ts:9](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/optional.ts#L9)
26+
[packages/reactant-di/src/optional.ts:9](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/optional.ts#L9)
2727

2828
## Properties
2929

@@ -33,7 +33,7 @@ custom_edit_url: null
3333

3434
#### Defined in
3535

36-
[packages/reactant-di/src/optional.ts:9](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/optional.ts#L9)
36+
[packages/reactant-di/src/optional.ts:9](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/optional.ts#L9)
3737

3838
## Accessors
3939

@@ -47,4 +47,4 @@ custom_edit_url: null
4747

4848
#### Defined in
4949

50-
[packages/reactant-di/src/optional.ts:11](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/optional.ts#L11)
50+
[packages/reactant-di/src/optional.ts:11](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/optional.ts#L11)

website/docs/api/reactant-di/modules/decorators_inject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ expect(fooBar.instance.foo.getValue()).toBe('foo');
7777

7878
#### Defined in
7979

80-
[packages/reactant-di/src/decorators/inject.ts:51](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/decorators/inject.ts#L51)
80+
[packages/reactant-di/src/decorators/inject.ts:51](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/decorators/inject.ts#L51)

website/docs/api/reactant-di/modules/decorators_injectable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ expect(fooBar.instance.foo.getValue()).toBe('foo');
109109

110110
#### Defined in
111111

112-
[packages/reactant-di/src/decorators/injectable.ts:84](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/decorators/injectable.ts#L84)
112+
[packages/reactant-di/src/decorators/injectable.ts:84](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/decorators/injectable.ts#L84)

website/docs/api/reactant-di/modules/decorators_lazy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ expect(bar.foo?.test).toBe('test');
8686

8787
#### Defined in
8888

89-
[packages/reactant-di/src/decorators/lazy.ts:41](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/decorators/lazy.ts#L41)
89+
[packages/reactant-di/src/decorators/lazy.ts:41](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/decorators/lazy.ts#L41)

website/docs/api/reactant-di/modules/decorators_multiInject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ custom_edit_url: null
3838

3939
#### Defined in
4040

41-
[packages/reactant-di/src/decorators/multiInject.ts:4](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/decorators/multiInject.ts#L4)
41+
[packages/reactant-di/src/decorators/multiInject.ts:4](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/decorators/multiInject.ts#L4)

website/docs/api/reactant-di/modules/decorators_multiOptional.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ custom_edit_url: null
3838

3939
#### Defined in
4040

41-
[packages/reactant-di/src/decorators/multiOptional.ts:7](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/decorators/multiOptional.ts#L7)
41+
[packages/reactant-di/src/decorators/multiOptional.ts:7](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/decorators/multiOptional.ts#L7)

website/docs/api/reactant-di/modules/decorators_optional.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ expect(fooBar.fooBar.bar).toBeUndefined();
7777

7878
#### Defined in
7979

80-
[packages/reactant-di/src/decorators/optional.ts:47](https://github.com/unadlib/reactant/blob/94ce5c78/packages/reactant-di/src/decorators/optional.ts#L47)
80+
[packages/reactant-di/src/decorators/optional.ts:47](https://github.com/unadlib/reactant/blob/5459ef00/packages/reactant-di/src/decorators/optional.ts#L47)

0 commit comments

Comments
 (0)