diff --git a/components/mentions/__tests__/__snapshots__/demo.test.js.snap b/components/mentions/__tests__/__snapshots__/demo.test.js.snap
index d2d8fe297a..cbc7404939 100644
--- a/components/mentions/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/mentions/__tests__/__snapshots__/demo.test.js.snap
@@ -177,7 +177,7 @@ exports[`renders ./components/mentions/demo/prefix.md correctly 1`] = `
`;
exports[`renders ./components/mentions/demo/readonly.md correctly 1`] = `
-
+Array [
@@ -192,7 +192,7 @@ exports[`renders ./components/mentions/demo/readonly.md correctly 1`] = `
rows="1"
/>
-
+ ,
-
-
+ ,
+]
`;
diff --git a/components/mentions/demo/readonly.md b/components/mentions/demo/readonly.md
index 864f4fcb86..93c9917cc3 100644
--- a/components/mentions/demo/readonly.md
+++ b/components/mentions/demo/readonly.md
@@ -28,7 +28,7 @@ function getOptions() {
function App() {
return (
-
+ <>
{getOptions()}
@@ -37,7 +37,7 @@ function App() {
{getOptions()}
-
+ >
);
}
diff --git a/components/slider/__tests__/__snapshots__/demo.test.js.snap b/components/slider/__tests__/__snapshots__/demo.test.js.snap
index b8eafc251c..85d27af2ed 100644
--- a/components/slider/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/slider/__tests__/__snapshots__/demo.test.js.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/slider/demo/basic.md correctly 1`] = `
-
+Array [
@@ -28,7 +28,7 @@ exports[`renders ./components/slider/demo/basic.md correctly 1`] = `
-
+
,
@@ -65,8 +65,8 @@ exports[`renders ./components/slider/demo/basic.md correctly 1`] = `
-
- Disabled:
+
,
+ "Disabled: ",
-
-
+ ,
+]
`;
exports[`renders ./components/slider/demo/event.md correctly 1`] = `
-
+Array [
@@ -111,7 +111,7 @@ exports[`renders ./components/slider/demo/event.md correctly 1`] = `
-
+
,
@@ -148,8 +148,8 @@ exports[`renders ./components/slider/demo/event.md correctly 1`] = `
-
-
+ ,
+]
`;
exports[`renders ./components/slider/demo/icon-slider.md correctly 1`] = `
@@ -470,10 +470,10 @@ exports[`renders ./components/slider/demo/input-number.md correctly 1`] = `
`;
exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
-
+Array [
included=true
-
+ ,
@@ -544,7 +544,7 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
-
+ ,
@@ -625,10 +625,10 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
-
+ ,
included=false
-
+ ,
@@ -695,10 +695,10 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
-
+ ,
marks & step
-
+ ,
@@ -769,10 +769,10 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
-
+ ,
step=null
-
+ ,
@@ -843,12 +843,12 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
-
-
+ ,
+]
`;
exports[`renders ./components/slider/demo/reverse.md correctly 1`] = `
-
+Array [
@@ -875,7 +875,7 @@ exports[`renders ./components/slider/demo/reverse.md correctly 1`] = `
-
+
,
@@ -912,8 +912,8 @@ exports[`renders ./components/slider/demo/reverse.md correctly 1`] = `
-
- Reversed:
+ ,
+ "Reversed: ",
-
-
+ ,
+]
`;
exports[`renders ./components/slider/demo/show-tooltip.md correctly 1`] = `
@@ -985,7 +985,7 @@ exports[`renders ./components/slider/demo/show-tooltip.md correctly 1`] = `
`;
exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = `
-
+Array [
@@ -1012,7 +1012,7 @@ exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = `
-
+
,
@@ -1039,12 +1039,12 @@ exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = `
-
-
+ ,
+]
`;
exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
-
+Array [
@@ -1075,7 +1075,7 @@ exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
class="ant-slider-mark"
/>
-
+ ,
@@ -1116,7 +1116,7 @@ exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
class="ant-slider-mark"
/>
-
+ ,
@@ -1201,6 +1201,6 @@ exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
-
-
+ ,
+]
`;
diff --git a/components/slider/demo/basic.md b/components/slider/demo/basic.md
index c29f6c819a..db9df0fb8d 100644
--- a/components/slider/demo/basic.md
+++ b/components/slider/demo/basic.md
@@ -28,11 +28,11 @@ class Demo extends React.Component {
render() {
const { disabled } = this.state;
return (
-
+ <>
Disabled:
-
+ >
);
}
}
diff --git a/components/slider/demo/event.md b/components/slider/demo/event.md
index ac0624d0f3..4e8863874a 100644
--- a/components/slider/demo/event.md
+++ b/components/slider/demo/event.md
@@ -25,7 +25,7 @@ function onAfterChange(value) {
}
ReactDOM.render(
-
+ <>
-
,
+ >,
mountNode,
);
```
diff --git a/components/slider/demo/mark.md b/components/slider/demo/mark.md
index a7b7371fc4..8d2a4b7faa 100644
--- a/components/slider/demo/mark.md
+++ b/components/slider/demo/mark.md
@@ -29,7 +29,7 @@ const marks = {
};
ReactDOM.render(
-
+ <>
included=true
@@ -42,7 +42,7 @@ ReactDOM.render(
step=null
- ,
+ >,
mountNode,
);
```
diff --git a/components/slider/demo/reverse.md b/components/slider/demo/reverse.md
index 103e532537..06d3bf95a6 100644
--- a/components/slider/demo/reverse.md
+++ b/components/slider/demo/reverse.md
@@ -28,11 +28,11 @@ class Demo extends React.Component {
render() {
const { reverse } = this.state;
return (
-
+ <>
Reversed:
-
+ >
);
}
}
diff --git a/components/slider/demo/tip-formatter.md b/components/slider/demo/tip-formatter.md
index 4961231c82..13206c8b5e 100644
--- a/components/slider/demo/tip-formatter.md
+++ b/components/slider/demo/tip-formatter.md
@@ -21,10 +21,10 @@ function formatter(value) {
}
ReactDOM.render(
-
+ <>
-
,
+ >,
mountNode,
);
```
diff --git a/components/slider/demo/vertical.md b/components/slider/demo/vertical.md
index b66c739d1c..6d5bc78d45 100644
--- a/components/slider/demo/vertical.md
+++ b/components/slider/demo/vertical.md
@@ -35,7 +35,7 @@ const marks = {
};
ReactDOM.render(
-
+ <>
@@ -45,7 +45,7 @@ ReactDOM.render(
-
,
+ >,
mountNode,
);
```
diff --git a/components/switch/__tests__/__snapshots__/demo.test.js.snap b/components/switch/__tests__/__snapshots__/demo.test.js.snap
index 65bd47dad9..299ada7efe 100644
--- a/components/switch/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/switch/__tests__/__snapshots__/demo.test.js.snap
@@ -17,7 +17,7 @@ exports[`renders ./components/switch/demo/basic.md correctly 1`] = `
`;
exports[`renders ./components/switch/demo/disabled.md correctly 1`] = `
-
+Array [
-
-
+ ,
+
,
-
+ ,
+]
`;
exports[`renders ./components/switch/demo/loading.md correctly 1`] = `
-
+Array [
-
-
+ ,
+
,
-
-
+ ,
+]
`;
exports[`renders ./components/switch/demo/size.md correctly 1`] = `
-
+Array [
-
-
+ ,
+
,
-
-
+ ,
+]
`;
exports[`renders ./components/switch/demo/text.md correctly 1`] = `
-
+Array [
-
+ ,
+
,
-
+ ,
+
,
-
+ ,
+]
`;
diff --git a/components/switch/demo/disabled.md b/components/switch/demo/disabled.md
index 622727673a..db011380b9 100644
--- a/components/switch/demo/disabled.md
+++ b/components/switch/demo/disabled.md
@@ -29,13 +29,13 @@ class App extends React.Component {
render() {
return (
-
+ <>
-
+ >
);
}
}
diff --git a/components/switch/demo/loading.md b/components/switch/demo/loading.md
index 674c247c49..40eefcae1d 100644
--- a/components/switch/demo/loading.md
+++ b/components/switch/demo/loading.md
@@ -17,11 +17,11 @@ Mark a pending state of switch.
import { Switch } from 'antd';
ReactDOM.render(
-
+ <>
-
,
+ >,
mountNode,
);
```
diff --git a/components/switch/demo/size.md b/components/switch/demo/size.md
index 1f139e5c27..5ce89b7f63 100644
--- a/components/switch/demo/size.md
+++ b/components/switch/demo/size.md
@@ -17,11 +17,11 @@ title:
import { Switch } from 'antd';
ReactDOM.render(
-
+ <>
-
,
+ >,
mountNode,
);
```
diff --git a/components/switch/demo/text.md b/components/switch/demo/text.md
index 92fadf4650..f70bba48c2 100644
--- a/components/switch/demo/text.md
+++ b/components/switch/demo/text.md
@@ -18,7 +18,7 @@ import { Switch } from 'antd';
import { CloseOutlined, CheckOutlined } from '@ant-design/icons';
ReactDOM.render(
-
+ <>
@@ -28,7 +28,7 @@ ReactDOM.render(
unCheckedChildren={}
defaultChecked
/>
-
,
+ >,
mountNode,
);
```