Browse Source

Update 04-multiple-components.md (#7861)

added missing map bracket
main
KeicaM 8 years ago
committed by Dan Abramov
parent
commit
5a90ffd6b0
  1. 4
      docs/04-multiple-components.md

4
docs/04-multiple-components.md

@ -138,7 +138,7 @@ class MyComponent extends React.Component {
<ul>
{this.props.results.map((result) => (
<ListItemWrapper data={result} />
)}
))}
</ul>
);
}
@ -157,7 +157,7 @@ class MyComponent extends React.Component {
<ul>
{this.props.results.map((result) => (
<ListItemWrapper key={result.id} data={result} />
)}
))}
</ul>
);
}

Loading…
Cancel
Save