Skip to content

Commit e96a11e

Browse files
committed
docs(website): update
1 parent 30b550e commit e96a11e

Some content is hidden

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

48 files changed

+208
-208
lines changed

website/blog/2020-08-09-reactant-a-framework-for-building-react-web-applications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Reactant is a progressive framework. In the process of developing applications f
3030

3131
### Better Immutable State Management
3232

33-
React advocates immutable state type management, and Redux clearly fits this. But the fact is that simple mutation update operations like MobX are increasingly in line with current trends. Therefore Reactant provides a new immutable state management model based on Redux and Immer, which incorporates similar API elements of MobX. And more importantly, it still maintains the immutability of state.
33+
React advocates immutable state type management, and Redux clearly fits this. But the fact is that simple mutation update operations like MobX are increasingly in line with current trends. Therefore Reactant provides a new immutable state management model based on Redux and [Mutative](https://github.com/unadlib/mutative), which incorporates similar API elements of MobX. And more importantly, it still maintains the immutability of state.
3434

3535
```ts
3636
@injectable()
@@ -93,7 +93,7 @@ Reactant will do more features that improve the development experience.
9393

9494
### Benchmark Performance
9595

96-
In benchmark performance tests between Reactant and MobX+React, Reactant has the edge in startup time and derived computing, while MobX+React has the edge in value updates. And overall, the performance difference is not particularly significant. Because Reactant is based on Immer, Reactant also provides a performance-optimized solution when encountering a very few extreme performance bottlenecks.
96+
In benchmark performance tests between Reactant and MobX+React, Reactant has the edge in startup time and derived computing, while MobX+React has the edge in value updates. And overall, the performance difference is not particularly significant. Because Reactant is based on [Mutative](https://github.com/unadlib/mutative), Reactant also provides a performance-optimized solution when encountering a very few extreme performance bottlenecks.
9797

9898
Reactant is committed to maintaining good performance while continuing to build a productive React framework.
9999

website/blog/2021-10-03-how-to-make-web-application-support-multiple-browser-windows/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ With that, we can quickly turn SharedWorker mode into SharedTab mode.
252252

253253
### Transport/Performance
254254

255-
Since the client app only renders and receives synchronized state. So the client app keeps running smoothly when the size of each dispatch update state does not exceed 50M. reactant uses [Immer patch](https://immerjs.github.io/immer/patches/) to update, usually this patch will be very small and reactant also does DEV checking for patch minimization updates. In fact, in most scenarios, the patch will not be that large.
255+
Since the client app only renders and receives synchronized state. So the client app keeps running smoothly when the size of each dispatch update state does not exceed 50M. reactant uses [Mutative Patch](https://github.com/unadlib/mutative) to update, usually this patch will be very small and reactant also does DEV checking for patch minimization updates. In fact, in most scenarios, the patch will not be that large.
256256

257257
| Update state size | Volume of data | Deserialization |
258258
| ------------------------- | -------------- | --------------- |
@@ -388,7 +388,7 @@ But in terms of module model and shared model, reactant-share already provides a
388388

389389
reactant-share is a framework for building Shared Web Apps. But such a model is not free, and it will face performance issues with data transfer (The high maintenance cost of the SharedArrayBuffer has forced us to abandon it for now as well. In fact this is a problem caused by the fact that JS "multithreading" does not share memory efficiently).
390390

391-
Although Shared Web Apps lets the client App run in a render-only client thread, it introduces the additional overhead of synchronous state transfer. We must ensure that it is lightweight and efficient enough. While reactant-share does state patch based on Immer, it is always difficult to ensure that each patch is minimally updated.
391+
Although Shared Web Apps lets the client App run in a render-only client thread, it introduces the additional overhead of synchronous state transfer. We must ensure that it is lightweight and efficient enough. While reactant-share does state patch based on [Mutative](https://github.com/unadlib/mutative), it is always difficult to ensure that each patch is minimally updated.
392392

393393
reactant-share provides a development option `enablePatchesChecker`. In development mode, it is enabled by default. Any mutation operation that is not a valid mutation will be alerted, usually eliminating the alert, and reactant-share will try to keep the update size as minimal as possible.
394394

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/4ec91913/packages/reactant-di/src/optional.ts#L9)
26+
[packages/reactant-di/src/optional.ts:9](https://github.com/unadlib/reactant/blob/30b550e1/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/4ec91913/packages/reactant-di/src/optional.ts#L9)
36+
[packages/reactant-di/src/optional.ts:9](https://github.com/unadlib/reactant/blob/30b550e1/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/4ec91913/packages/reactant-di/src/optional.ts#L11)
50+
[packages/reactant-di/src/optional.ts:11](https://github.com/unadlib/reactant/blob/30b550e1/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/4ec91913/packages/reactant-di/src/decorators/inject.ts#L51)
80+
[packages/reactant-di/src/decorators/inject.ts:51](https://github.com/unadlib/reactant/blob/30b550e1/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/4ec91913/packages/reactant-di/src/decorators/injectable.ts#L84)
112+
[packages/reactant-di/src/decorators/injectable.ts:84](https://github.com/unadlib/reactant/blob/30b550e1/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/4ec91913/packages/reactant-di/src/decorators/lazy.ts#L41)
89+
[packages/reactant-di/src/decorators/lazy.ts:41](https://github.com/unadlib/reactant/blob/30b550e1/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:6](https://github.com/unadlib/reactant/blob/4ec91913/packages/reactant-di/src/decorators/multiInject.ts#L6)
41+
[packages/reactant-di/src/decorators/multiInject.ts:6](https://github.com/unadlib/reactant/blob/30b550e1/packages/reactant-di/src/decorators/multiInject.ts#L6)

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/4ec91913/packages/reactant-di/src/decorators/multiOptional.ts#L7)
41+
[packages/reactant-di/src/decorators/multiOptional.ts:7](https://github.com/unadlib/reactant/blob/30b550e1/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/4ec91913/packages/reactant-di/src/decorators/optional.ts#L47)
80+
[packages/reactant-di/src/decorators/optional.ts:47](https://github.com/unadlib/reactant/blob/30b550e1/packages/reactant-di/src/decorators/optional.ts#L47)

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

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

2525
#### Defined in
2626

27-
[packages/reactant-di/src/forwardRef.ts:4](https://github.com/unadlib/reactant/blob/4ec91913/packages/reactant-di/src/forwardRef.ts#L4)
27+
[packages/reactant-di/src/forwardRef.ts:4](https://github.com/unadlib/reactant/blob/30b550e1/packages/reactant-di/src/forwardRef.ts#L4)

0 commit comments

Comments
 (0)