Browse Source

Fix erroneous '}' in JSX examples (#8043)

main
Nathan Hardy 8 years ago
committed by Dan Abramov
parent
commit
4c72dce721
  1. 2
      docs/jsx-in-depth.md
  2. 10
      docs/reconciliation.md

2
docs/jsx-in-depth.md

@ -70,7 +70,7 @@ var MyComponents = {
} }
function BlueDatePicker() { function BlueDatePicker() {
return <MyComponents.DatePicker color="blue"} />; return <MyComponents.DatePicker color="blue" />;
} }
``` ```

10
docs/reconciliation.md

@ -117,14 +117,14 @@ In order to solve this issue, React supports a `key` attribute. When children ha
```xml ```xml
<ul> <ul>
<li key="2015"}>Duke</li> <li key="2015">Duke</li>
<li key="2016"}>Villanova</li> <li key="2016">Villanova</li>
</ul> </ul>
<ul> <ul>
<li key="2014"}>Connecticut</li> <li key="2014">Connecticut</li>
<li key="2015"}>Duke</li> <li key="2015">Duke</li>
<li key="2016"}>Villanova</li> <li key="2016">Villanova</li>
</ul> </ul>
``` ```

Loading…
Cancel
Save