Update snippets/ModalDialog.md
Co-Authored-By: zhongdeming428 <zhongdeming428@163.com>
This commit is contained in:
@ -126,7 +126,7 @@ class Dialog extends React.Component {
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
// add to render function
|
// add to render function
|
||||||
<Dialog closeOnClick={true} />
|
<Dialog />
|
||||||
|
|
||||||
// every time you wanna call the dialog
|
// every time you wanna call the dialog
|
||||||
// content is a jsx element
|
// content is a jsx element
|
||||||
|
|||||||
Reference in New Issue
Block a user