When requiring users to interact with application, but without jumping to a new page to interrupt
When requiring users to interact with application, but without jumping to a new page to interrupt
the user's workflow, you can use `Modal` to create a new floating layer over the current page for user
the user's workflow, you can use `Modal` to create a new floating layer over the current page for user
getting feedback or information purposes.
getting feedback or information purposes.
Additionally, if you need show a simple confirmation dialog, you can use `ant.Modal.confirm()`,
Additionally, if you need show a simple confirmation dialog, you can use `antd.Modal.confirm()`,
and so on.
and so on.
## API
## API
@ -38,11 +38,11 @@ and so on.
> The state of Modal will be preserved at it's component lifecircle.
> The state of Modal will be preserved at it's component lifecircle.
> If you wish to open it with brand new state everytime, you need to reset state manually. Or simply [give a new key](https://github.com/ant-design/ant-design/issues/4165) to Modal when visible is changed to `true`, React will treat it as a new component.
> If you wish to open it with brand new state everytime, you need to reset state manually. Or simply [give a new key](https://github.com/ant-design/ant-design/issues/4165) to Modal when visible is changed to `true`, React will treat it as a new component.