Commit Graph

1315 Commits

Author SHA1 Message Date
Gil Chen-Zion
fbccd7b3d6 Note that getInitialState is not used in ES6 classes in docs (#7748) 2016-09-28 19:07:29 -07:00
Christoph Pojer
5f180b27fd Reduce confusion in testing documentation. (#7818)
* Reduce confusion in testing documentation.

Just wanted to add some clarity to this page and link to the react tutorial on Jest's website to give people more information. Also changed enzyme's definition from library to utility to help reduce the confusion. Hope this makes sense to everybody :)

See https://twitter.com/damusnet/status/780752042675597312

cc @lelandrichardson

* Update 10.4-test-utils.md
2016-09-27 19:08:02 -07:00
imjanghyuk
40a708fb73 Update 07-forms.ko-KR.md (#7809)
fix spelling
2016-09-26 14:02:33 -07:00
jinmmd
b0385f070e Change [入门教程] from "tutorial.html" to "tutorial-zh-CN.html" (#7789) 2016-09-26 10:39:34 -07:00
jinmmd
efba6d4740 Change [API参考] from "top-level-api.html" to "top-level-api-zh-CN.html" (#7790) 2016-09-26 10:39:03 -07:00
Paul O’Shannessy
862084fa47 [docs] Update React Rally 2016 videos link (#7771) 2016-09-19 14:26:32 -07:00
Gant Laborde
10dd13bbf7 Adding the published ReactRally videos section (#7681)
ReactRally came and went, and it was splendid.
2016-09-08 10:17:39 -05:00
Kite
c16355138c Fix the HTML for package management (#7656) 2016-09-06 09:58:17 -07:00
Dan Abramov
993b5d16b8 Link to Create React App (#7654)
* Link to Create React App

* Reword
2016-09-03 18:13:30 +01:00
却痕
92c5e22268 docs:translate doc 11-advanced-performance to chinese (#7584) 2016-09-01 22:59:30 -04:00
Michael Jackson
d69d722116 s/npmcdn/unpkg/g (#7609)
npmcdn.com is moving to unpkg.com. Same backend, one less letter in the
domain name. Boom.
2016-08-29 19:45:31 -07:00
Duke Pham
a4295280f6 Add line breaks to examples on 10.1-animation docs per (#7606)
comments to issue #7317.
Updated JP doc examples to match other languages
Reformat to match JSX multi-line style #7550
2016-08-29 15:50:23 -07:00
Robert Kielty
05138ac33a Adds minor additions clarifying questions I had reading intro tutorial (#7595) 2016-08-29 15:34:48 -07:00
Nik Nyby
557f06e044 docs: re-position comments to account for code sample width (#7602) 2016-08-29 10:08:07 -07:00
NestorTejero
8dcfec57b1 add explicit link to http://bower.io/ (#7546) 2016-08-23 09:30:12 -07:00
Alex Zherdev
4609f1fcf7 Fix header link generation for non-English docs (#7497) 2016-08-18 14:55:50 -07:00
龙海燕
8cb03e0bb0 Update 09.2-package-management.md (#7520) 2016-08-18 08:52:07 -06:00
Jess Telford
7aecf55405 React.Children.toArray() changes keys (#7495)
As noted by @spicyj in #5541
2016-08-15 23:43:33 -07:00
Tanase Hagi
7793db16b0 Add propsTypes and defaultProps example for stateless functions (#7458)
* Add propsTypes and defaultProps example for stateless functions

* Update 05-reusable-components.md

* Update 05-reusable-components.md
2016-08-14 12:04:47 -05:00
Robert Martin
3d38c5cd3b Capitalize AJAX (#7435) 2016-08-08 16:24:30 -07:00
Robert Chang
c546230adb change a word in performance docs (#7442) 2016-08-08 16:10:28 -07:00
Paul O’Shannessy
75a4bce9f7 [docs] Use npmcdn (#7394) 2016-08-02 13:44:06 -07:00
Paul O’Shannessy
0a37797a2f [docs] add permalink for newly translated page (#7380) 2016-07-29 16:24:43 -07:00
Keyan Zhang
3efd930d49 fixed incorrect doc location (#7365) 2016-07-28 11:03:07 -07:00
Gert Hengeveld
70583932bb Added ReactNL conference (#7342) 2016-07-25 16:17:05 -07:00
scloudyy
85b053db03 Update docs zh cn (#7254)
* update 03-interactivity-and-dynamic-uis.zh-CN

* update 04-multiple-components.zh-CN

* update 05-reusable-components.zh-CN

* updat 06-transferring-props.zh-CN

* update 07-forms.zh-CN

* update 08-working-with-the-browser.zh-CN

* update 08 and 08.1

* update 09-tooling-integration.zh-CN

* revise

* don't use ES6
2016-07-25 12:23:45 -07:00
Veljko Tornjanski
ac1bb87249 Wording change in doc (#7348) 2016-07-25 11:59:15 -07:00
Paul O’Shannessy
24d53c1c37 Finish Jekyll 3 Upgrade
- Reverts change to use sectionid on layouts (was unreliable), using config to make sure that's specified on all pages that need it
- Adds permalinks to all other pages so that og data is correct
- Corrects some permalinks that were in correct (translations)
2016-07-19 15:08:58 -07:00
Daniel Lo Nigro
d457201862 Upgrade to Jekyll 3
Full list of changes is at https://jekyllrb.com/docs/upgrading/2-to-3/. The tl;dr of it is:
 - Relative permalinks were removed, so all the files in the `docs` subdirectory need their permalink to be prefixed with `docs/`
 - `post` and `page` types were renamed to `posts` and `pages` respectively
 - `jekyll-paginate`, `pygments` and `redcarpet` are all now optional, so I needed to explicitly add it to the Gemfile. Jekyll now uses `rouge` rather than `pygments` for syntax highlighting, but rouge does not support highlighting individual lines (`hl_lines`) so we need to continue using Pygments.
 - Layout metadata (eg. `sectionid`) is now on a `layout` variable rather than `page`

Tested the following pages and confirmed that they all work:
 - "Docs" link (getting started page): http://127.0.0.1:4000/react/docs/getting-started.html
 - Downloads: http://127.0.0.1:4000/react/downloads.html
 - Tutorial: http://127.0.0.1:4000/react/docs/tutorial.html
 - A few pages under the "docs" subdirectory, to confirm they're working properly:
    - http://127.0.0.1:4000/react/docs/addons.html
 - http://127.0.0.1:4000/react/docs/why-react.html
 - http://127.0.0.1:4000/react/docs/create-fragment.html
 - A few tips:
    - http://127.0.0.1:4000/react/tips/false-in-jsx.html
 - http://127.0.0.1:4000/react/tips/style-props-value-px.html
 - Non-English versions of the page:
    - http://127.0.0.1:4000/react/docs/getting-started-it-IT.html
    - http://127.0.0.1:4000/react/docs/getting-started-ja-JP.html
2016-07-19 12:18:49 -07:00
Paul O’Shannessy
710f12e7e3 [docs] Follow up to 6972 - update docs code (#7278) 2016-07-13 13:17:09 -07:00
segmentationfaulter
33faa2c9fe Update 03-interactivity-and-dynamic-uis.md (#6972) 2016-07-13 13:14:41 -07:00
Zac Smith
c95279ea17 Remove uneccesary colon (#7238)
Only use a colon after a statement that is a complete sentence, like [Grammer Girl says](http://www.quickanddirtytips.com/education/grammar/colons).
2016-07-12 11:19:07 -07:00
Varayut Lerdkanlayanawat
8695fd8c66 Reformat event names in Media Events section (#7250) 2016-07-12 10:10:29 -07:00
Samuel Reed
7c4a139e05 Add PropTypes.symbol to reusable components doc (#7171) 2016-07-02 20:54:47 +01:00
Brandon Dail
253a28af5e Clarify purpose of state property in ES6 classes (#7109) 2016-06-23 12:44:36 -07:00
Jim
f50372573e webcomponents should use attachedCallback instead of createdCallback. (#7102) 2016-06-22 12:42:50 -07:00
Nik Nyby
8e726bb55f update babel-core to 5.8.34 in tutorial docs (#7059) 2016-06-16 20:50:14 -07:00
Claudio Brandolino
1cadb2e74d Standardise format of the three "state" questions. (#7046)
* Standardise format of the three "state" questions.

The original format follows the template:

 > 1. x? if `x` then probably isn't state
 > 2. y? if `!y` then probably isn't state
 > 3. z? if `z` then it's not state

This caused both me and a hallway tester to do a double take.

The proposed reformulation allows the answers to follow the same template.

In the same spirit, it uses the same contraction pattern in the last answer (`it's not state`-> `it isn't state`). This has the welcome side effect to make the lack of "probably" stand out more.

* Update phrasing in thinking in reacr
2016-06-16 10:35:18 -07:00
Toru Kobayashi
0856ab5f90 Remove setProps and replaceProps from docs (#7044) 2016-06-14 22:13:26 -07:00
Paul O’Shannessy
0f7cac436c Revert "Remove setProps and replaceProps completely" (#7039) 2016-06-14 15:02:01 -07:00
Qin Junwen
23f3548578 Update 10.4-test-utils.md (#6971)
The find/scry methods which returns DOM component in react@0.13 now returns DOMElement in react@0.14 and later.
2016-06-14 14:09:20 -04:00
Robert Haritonov
070997991a Add React Amsterdam conference to the list (#7028) 2016-06-14 11:02:13 -07:00
nhducit
661864461d Update 03-interactivity-and-dynamic-uis.md (#7015) 2016-06-14 13:55:38 -04:00
Ryo Shibayama
7398aac852 Fix Japanese/Italian/Korean tutorials (#7020)
* Fix japanese tutorial

* Fix Italian tutorial as same as e4fe662

* Fix Korean tutorial as same as e4fe662
2016-06-12 00:03:13 -07:00
inkinworld
a4dd77330b Update 12-context.md (#6973)
Modify a clerical error
2016-06-10 11:52:10 -07:00
Toru Kobayashi
7793eed812 Remove setProps and replaceProps completely (#6921) 2016-06-09 03:53:52 -07:00
ogom
27fc830022 Updte tutorial to ja-JP (#6967) 2016-06-08 19:20:20 -07:00
Yusong Liu
4e3f20814f Fix the typo in the documentaion pages for shallowCompare (#6980)
* fix the typo for the docs of shallowCompare at:
https://facebook.github.io/react/docs/shallow-compare.html

* change "value" to "values" to match the two objects.
2016-06-07 23:09:50 -07:00
Keyan Zhang
0321236b1b [Docs] Error Decoder Page (#6946) 2016-06-04 14:43:56 -07:00
Ben Alpert
2719c2e795 Use remarkable instead of marked (#6961)
https://github.com/reactjs/react-tutorial/issues/139
2016-06-03 14:41:38 -07:00