From d16f97fc70171f74015e6a0980fd0d8e8b2eb04f Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 15 Jun 2023 18:17:36 +0800 Subject: [PATCH] docs: update App component usage (#43030) --- components/app/index.en-US.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/app/index.en-US.md b/components/app/index.en-US.md index d6804f75e8..e7cd528e8f 100644 --- a/components/app/index.en-US.md +++ b/components/app/index.en-US.md @@ -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