diff --git a/snippets/MappedList.md b/snippets/MappedList.md
index bcec0f75f..ca7eba5a6 100644
--- a/snippets/MappedList.md
+++ b/snippets/MappedList.md
@@ -9,21 +9,30 @@ Omit the `isOrderedList` prop to render a `
` list by default.
```jsx
function MappedList(props) {
- return props.isOrderedList ?
+ return props.isOrderedList ? (
- {props.data.map((v,i) => - {v.value ? v.value : v}
)}
-
:
+ {props.data.map((v, i) => (
+ - {v.value ? v.value : v}
+ ))}
+
+ ) : (
- {props.data.map((v,i) => - {v.value ? v.value : v}
)}
+ {props.data.map((v, i) => (
+ - {v.value ? v.value : v}
+ ))}
-};
+ );
+}
```
```jsx
const names = ['John', 'Paul', 'Mary'];
ReactDOM.render(, document.getElementById('root'));
const users = [ { id: 8, value: 'john' }, { id: 3, value: 'paul' }];
-ReactDOM.render(, document.getElementById('root'));
+ReactDOM.render(
+ ,
+ document.getElementById('root')
+);
```