mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
docs: update App component usage (#43030)
This commit is contained in:
parent
37b85e06f2
commit
d16f97fc70
@ -8,11 +8,12 @@ demo:
|
||||
cols: 2
|
||||
---
|
||||
|
||||
New App Component which provide global style & static function replacement.
|
||||
Application wrapper for some global usages.
|
||||
|
||||
## When To Use
|
||||
|
||||
Static function in React 18 concurrent mode will not well support. In v5, we recommend to use hooks for the static replacement. But it will make user manual work on define this.
|
||||
- Provide reset styles based on `.ant-app` element.
|
||||
- You could use static methods of `message/notification/Modal` form `useApp` without put `contextHolder` mannully.
|
||||
|
||||
## Examples
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user