The library for web and native user interfaces.
fix markup bugs
petehunt committed
Jul 14, 2013 at 18:46 UTC
e9e89345778d9a1a0f4dcbe2f2ff2d97c0651562
2 files changed
+3
-2
docs/_includes/nav_docs.html
+2
-2
@@ -2,8 +2,8 @@
2
<div class="nav-docs-section">
3
<h3>Quick start</h3>
4
<ul>
5
- <li><a href="/react/docs/getting-started"{% if page.id == 'getting-started' %} class="active"{% endif %}>Getting started</a></li>
6
- <li><a href="/react/docs/tutorial"{% if page.id == 'tutorial' %} class="active"{% endif %}>Tutorial</a></li>
5
+ <li><a href="/react/docs/getting-started.html"{% if page.id == 'getting-started' %} class="active"{% endif %}>Getting started</a></li>
6
+ <li><a href="/react/docs/tutorial.html"{% if page.id == 'tutorial' %} class="active"{% endif %}>Tutorial</a></li>
7
</ul>
8
</div>
9
<div class="nav-docs-section">
docs/docs/03-interactivity-and-dynamic-uis.md
+1
@@ -74,6 +74,7 @@ A common pattern is to create several stateless components that just render data
74
### What *shouldn't* go in state?
75
76
`this.state` should only contain the minimal amount of data needed to represent your UI's state. As such, it should not contain:
77
+
78
* **Computed data.** Don't worry about precomputing values based on state -- it's easier to ensure that your UI is consistent if you do all computation within `render()`. For example, if you have an array of list items in state and you want to render the count as a string, simply render `this.state.listItems.length + ' list items'` in your `render()` method rather than storing it on state.
79
* **React components.** Build them in `render()` based on underlying props and state.
80
* **Duplicated data from props.** Try to use props as the source of truth where possible. Because props can change over time, it's appropriate to store props in state to be able to know its previous values.
\ No newline at end of file