Browse Source

Update wording on AJAX tip

main
Paul O’Shannessy 11 years ago
parent
commit
59575acb4a
  1. 2
      tips/12-initial-ajax.md

2
tips/12-initial-ajax.md

@ -7,7 +7,7 @@ prev: dom-event-listeners.html
next: false-in-jsx.html
---
Fetch data in `componentDidMount`. When they arrive, put them inside your state then render them.
Fetch data in `componentDidMount`. When the response arrives, store the data in state, triggering a render to update your UI.
This example fetches the desired Github user's lastest gist:

Loading…
Cancel
Save