diff --git a/snippets/MappedList.md b/snippets/MappedList.md
index b3b1c9c2a..2d79ced35 100644
--- a/snippets/MappedList.md
+++ b/snippets/MappedList.md
@@ -2,17 +2,17 @@
Renders a list of elements from an array of data.
-Use the value of the `isOrderedList` prop to conditionally render a `
` or `` list.
+Use the value of the `isOrdered` prop to conditionally render a `` or `` list.
Use `Array.prototype.map` to render every item in `data` as a `- ` element and give it a `key`.
`data` can either be an array of objects with the `id` and `value` properties or an array of primitives.
-Omit the `isOrderedList` prop to render a `
` list by default.
+Omit the `isOrdered` prop to render a `` list by default.
```jsx
-function MappedList({ isOrderedList, data }) {
+function MappedList({ isOrdered, data }) {
const list = data.map((v, i) => (
- {v.value ? v.value : v}
));
- return isOrderedList ? {list}
: ;
+ return isOrdered ? {list}
: ;
}
```
@@ -21,7 +21,7 @@ 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')
);
```