Commit Graph

448 Commits

Author SHA1 Message Date
Paul O’Shannessy 91cdd5af24 Merge pull request #2010 from nw/patch-1
Update ref-01-top-level-api.md
2014-08-13 17:26:51 -07:00
Paul O’Shannessy ec6653aa56 Merge pull request #1952 from slorber/master
Update 09.2-form-input-binding-sugar.md -> document checkedLink
2014-08-13 15:32:27 -07:00
Paul O’Shannessy 51df0efe34 Use jekyll-redirect-from instead of our other redirect method 2014-08-13 12:38:09 -07:00
Paul O’Shannessy 4c7cd13ab3 Set default layout for docs 2014-08-13 11:40:14 -07:00
Andre Z Sanchez 6f49827c12 Fix typo 2014-08-11 22:57:33 -04:00
Nathan White c141a8581f changed type info. added descriptor to descriptions 2014-08-11 15:44:21 -06:00
Paul O’Shannessy 1033c4805f Remove TodoMVC flux example
It lives at https://github.com/facebook/flux/tree/master/examples/flux-todomvc now.
2014-08-11 13:02:12 -07:00
Adam Mark 8642262aad Copy edit (fix grammar) 2014-08-11 12:19:08 -04:00
Adam Mark 77d7b4928e Close <section> tag in sample markup 2014-08-11 12:13:04 -04:00
Sam Selikoff 90888debd0 Clarify section introducing callbacks 2014-08-10 16:47:06 -04:00
Sam Selikoff 255f238cee Clarify section introducing props 2014-08-09 19:24:40 -04:00
Nathan White c53fb8f405 Update ref-01-top-level-api.md
Added docs for `React.isValidClass` and `React.isValidComponent`. 

Still missing top level api:

* `constructAndRenderComponent`
* `constructAndRenderComponentById`
* `withContext`
2014-08-07 12:09:45 -06:00
Cheng Lou 12ab5e8345 Merge pull request #1974 from jstoja/jquery-tutorial
jQuery note in tutorial
2014-08-05 22:10:58 -07:00
Ben Alpert e39a28c175 [docs] Add parens to defeat ASI in example
Fixes #1996.
2014-08-04 21:48:24 -07:00
Ben Alpert e2dad02ef2 Wording tweaks to reconciliation docs 2014-08-04 08:36:49 -07:00
Ben Alpert 716742dcd7 Merge pull request #1972 from cutbko/patch-1
Update ref-08-reconciliation.md
2014-08-04 08:35:22 -07:00
Julien Bordellier 46c0bbfb11 Using the markdown's quote syntax and explaining why use include jQuery 2014-08-04 10:42:55 +02:00
Jim OBrien 0e7526e401 typo 2014-08-02 22:04:37 -07:00
Julien Bordellier 5eca8d604f Adding a note just below the jQuery inclusion in the tutorial to inform that jQuery is not mandatory.
It's linked with #603
2014-08-02 11:32:31 +02:00
cutbko d0494ac85c Update ref-08-reconciliation.md 2014-08-02 02:59:16 +03:00
Julen Ruiz Aizpuru 1219663e9a Docs: added note about setState() side-effects 2014-07-31 09:31:01 +02:00
Sébastien Lorber d0d15a3a3c Update 09.2-form-input-binding-sugar.md -> better checkedLink documentation 2014-07-30 11:17:38 +02:00
Sébastien Lorber b9a0c27914 Update 09.2-form-input-binding-sugar.md
Add better explanation for 2-way data binding to checkboxes using `checkedLink`. As mentionned here: https://github.com/facebook/react/issues/1930
2014-07-29 16:14:27 +02:00
David Hu 721f397303 Clarify animating one or zero items in docs
When I first read these docs, it was not immediately clear to me that I could
use `React.addons.CSSTransitionGroup` to animate a single item coming into view,
or an item replacing an item already there. This was partly due to the example
which rendered a list of items.

This PR adds a blurb about being able to use
`React.addons.CSSTransitionGroup` with one or zero items, provides a code
example, and adds a note blockquote that a `key` attribute must always be
provided on each child of `React.addons.CSSTransitionGroup`. The latter point
was not immediately obvious from the original `TodoList` code example, since it
renders a list which would normally require `key` attributes anyway.

Test Plan:
- Refreshed `http://localhost:4000/react/docs/animation.html`, saw that the
  docs additions rendered correctly.
- Example code not tested (it was extracted from working code).
2014-07-27 00:26:17 -07:00
Paul O’Shannessy 4bb7b70b28 Merge pull request #1892 from thauburger/patch-1
Remove _addPromise from Dispatcher code example
2014-07-21 15:55:41 -07:00
Cheng Lou d210269985 Merge pull request #1882 from glenjamin/patch-1
Note how to access Perf in docs
2014-07-20 11:45:24 -07:00
Cheng Lou d95a4ef983 [Docs] Add recent addons to addons.html; tweak wording
Add PureRenderMixin and Perf to this page. Also, I think it's better if the link titles reflect the name used by these addons.
2014-07-20 00:59:19 -07:00
Tom Hauburger c94bb20cb8 Remove _addPromise from Dispatcher code example
`_addPromise` is not used in the provided Dispatcher example, nor does it exist in Dispatcher.js found here: https://github.com/facebook/react/blob/master/examples/todomvc-flux/js/dispatcher/Dispatcher.js
2014-07-19 19:52:33 -07:00
Ben Alpert 93712246c8 Reword sentence in reconciliation docs 2014-07-19 14:44:16 -07:00
Glen Mailer 83fd5583bf Note how to access Perf in docs 2014-07-19 16:14:27 +01:00
Ben Alpert 384e8fe195 Fix appearance of video thumbnail 2014-07-17 15:19:58 -07:00
Ben Alpert d39b8078a3 Merge pull request #1835 from amm385/patch-1
Update videos.md
2014-07-17 15:15:11 -07:00
Ben Alpert 11e0e5ae44 Performance boost in some cases 2014-07-17 13:43:43 -07:00
Ben Alpert 6ee9aa773d Remove stale deprecation note from unmounting docs 2014-07-16 23:22:54 -07:00
Ben Alpert ba5c7ff507 Add React.Children.count docs 2014-07-16 23:19:45 -07:00
Paul O’Shannessy c21678f9bc Merge pull request #1818 from chenglou/docs-apply
[Docs] Update addons.update
2014-07-16 14:17:47 -07:00
Paul O’Shannessy bb6087848d Merge pull request #1821 from chenglou/docs-addons-perf
[Docs] Perf tools
2014-07-16 14:17:30 -07:00
Ben Alpert dd3167edc9 Reorder reference pages
This order should make more sense; it moves important functions like React.renderComponent up and deprecated/discouraged ones like transferPropsTo and setProps down. No content changes.
2014-07-15 23:03:37 -07:00
Ben Alpert abb95eed5c Fix comma splice 2014-07-15 22:34:33 -07:00
Cheng Lou 12750ad749 [Docs] Perf tools
Fixes #1814.
@petehunt @joshduck
The images look blurry (taken on retina then shrank down to 50%...)
2014-07-15 11:17:21 -07:00
Paul O’Shannessy e85e5e9952 Merge pull request #1817 from chenglou/docs-PureRenderMixin
[Docs] Document PureRenderMixin addon
2014-07-15 11:09:16 -07:00
Ben Alpert 76496b3cca Add note about higher/lower-level transition APIs 2014-07-14 21:41:07 -07:00
Cheng Lou 8ebadf1591 [Docs] Update addons.update
Fixes #1815.
Add the new `$apply` command, plus a few examples.

@petehunt
2014-07-14 17:59:22 -07:00
Areeb Malik 28ed79c2ce Update videos.md
reordering to spot #4
2014-07-14 17:31:56 -07:00
Areeb Malik afe30ad8ee Update videos.md
Adding video for my recent talk in London about using React in large scale applications
2014-07-14 17:16:44 -07:00
Ben Alpert 7b872cd781 Merge pull request #1813 from baddox/patch-2
Verb agreement grammar fix
2014-07-14 17:08:43 -07:00
Ben Alpert c26c2d42ac Merge pull request #1812 from baddox/patch-1
Add possessive to fix grammar
2014-07-14 17:07:10 -07:00
Cheng Lou 8f909233c9 [Docs] Document PureRenderMixin addon
Fixes #1816
2014-07-12 14:56:43 -07:00
Paul O’Shannessy 4526f627f2 Simplify shouldComponentUpdate example [skip ci] 2014-07-11 15:32:48 -07:00
Ben Alpert a47a6ab1d1 Rewrap tags/attributes lists 2014-07-11 15:23:51 -07:00