Commit Graph

294 Commits

Author SHA1 Message Date
Daniel Bird
cdecba10b3 Move examples of rendering elements from CodePen into ./examples 2017-12-27 20:39:46 -05:00
邪无神
49e79e3f08 fix(#460) 404 link of Relay's createContainer API in doc HOC (#468) 2017-12-26 12:10:46 +00:00
Satish Yadav
239fe8c11f Link to "Add React to an Existing App" corrected. (#465)
Link to "Add React to an Existing App" corrected. It was pointing to "/docs/add-react-to-a-new-app.html".
2017-12-25 14:42:21 +00:00
Dan Abramov
2d85831231 Tweak links
- anchor link scrolls badly, link to the top instead
- add a line break
2017-12-23 20:34:53 +00:00
Dan Abramov
fbf52cc973 Add a note about using React not for SPAs (#462)
* Add a note about using React not for SPAs

* Reword and highlight

* Reword section about starter kits

* Update add-react-to-a-new-app.md
2017-12-23 20:28:00 +00:00
Dan Abramov
14acda1c92 Reword the note 2017-12-23 19:42:40 +00:00
Alex
7fafb9f916 Break out Installation into top-level doc section (#452)
* Break out Installation into top-level doc section

* Update navigation (prev/next, nav tree)

- Move Installation section to top
- Add next/prev to install pages

* add links to other install options from try react page

* fix markdown link

* Clarify that Quick Start and Install are optional "next steps"

* Add top-level CDN page

This is useful for Codepen and other Unpkg-y setups

* Add link to Tutorial from Try React

* Update CRA link in tutorial

* Make Try React subheader a proper sentence

* Add "minimal"

* Explain local dev setup is more work than Codepen etc

* Fix typos

* Add : between headings

* add note that CRA is not lightweight

* fix typo

* Update add-react-to-a-new-app.md

* Update add-react-to-a-new-app.md

* Remove the Bower note

* Update try-react.md

* Tweak wording

* Use direct link
2017-12-23 15:37:23 +00:00
Victor Hom
b71288c3ec update a link 2017-12-20 23:18:53 -05:00
Ravshan Samandarov
1b80d3658e Update introducing-jsx.md (#443) 2017-12-19 19:43:30 +00:00
Almero Steyn
1410e6ddd0 a11y-doc: Add Fragments and expand Focus Control. (#381) 2017-12-19 11:49:34 +00:00
Brian Vaughn
d228ff792f Merge pull request #433 from sznowicki/patch-1
Update `React.PureComponent` reference.
2017-12-17 11:10:05 -08:00
Szymon Nowicki
b646c386b8 Rolled back empty line removal. 2017-12-16 12:26:57 +01:00
Szymon Nowicki
74d974449c Update React.PureComponent reference.
Rewording the `React.PureComponent` reference to make it more clear, that `React.Component` doesn't implement `.shouldComponentUpdate` at all.
2017-12-16 12:25:31 +01:00
Kirby Walls
b943f6c4c4 Change EssayForm label text to match example (#428) 2017-12-16 01:05:46 +00:00
Szymon Nowicki
04f46c4c5d Update reference-react.md
Rolled back trailing whitespace.
2017-12-15 17:31:42 +01:00
Szymon Nowicki
ee1f416790 Update React.PureComponent reference.
Maybe I'm somehow weird, but I lived for some time with an idea that `React.Component` does implement `shouldComponentUpdate` with deep comparison. `React.PureComponent` is faster because it compares shallowly.

The changes I propose should avoid this "implicit" kind of way of thinking, since it would explicitly state that `React.Component` does not compare anything.
2017-12-15 17:29:55 +01:00
Iurii Kucherov
7d525d5c18 Update reference-glossary.md
Hi guys,

Here is a small fix for a typo.

Thanks
2017-12-14 14:57:32 +01:00
Dan Abramov
74de9934be Avoid "tick" jargon in componentDidMount docs (#415) 2017-12-13 23:53:32 +00:00
Dan Abramov
a3e8023829 Add "Why JSX" (#424)
* Add "Why JSX"

* Update introducing-jsx.md
2017-12-13 19:15:32 +00:00
Dan Abramov
1ae5a006b4 Use <React.Fragment> over <> in the docs (#414)
* Use <React.Fragment> over <> in the docs

* Update fragments.md
2017-12-12 17:42:26 +00:00
Mark Samman
8ac52a6675 Remove allowTransparency from DOM attribute list (#407)
React no longer supports allowTransparency as of 4472442708 which has been published in a release.
2017-12-10 13:44:45 +00:00
Andrew Clark
3d6c10d893 Merge pull request #392 from clemmy/fragment-docs
Add Fragment Documentation
2017-12-07 13:57:02 -08:00
Dan Abramov
0a3a82679e Mention “slots” (#404) 2017-12-07 19:49:42 +00:00
Dan Abramov
074137229d Document support for debugging tests 2017-12-07 12:07:52 +00:00
Clement Hoang
17953379b2 Address nits 2017-12-07 01:27:25 -08:00
Eduard Troshin
78218be2c7 Update static-type-checking.md 2017-12-06 14:44:47 +05:00
Clement Hoang
a18bde67b2 Update fragment docs 2017-12-05 14:29:23 -08:00
Clement Hoang
877b228698 Add fragments to navbar 2017-12-02 13:36:55 -08:00
Aamir Afridi
c6955212f3 Typo (#390) 2017-12-02 17:55:02 +00:00
Clement Hoang
c90276f151 Update top level API for fragments 2017-12-01 17:59:19 -08:00
Clement Hoang
938f8534f1 Add new fragment guide 2017-12-01 17:36:33 -08:00
Clement Hoang
a39cb5fe78 Add big redirect away from create-fragment page 2017-12-01 17:36:21 -08:00
Brian Vaughn
a53a1afb72 Merge pull request #340 from mateoholman/lists-and-keys-link
Added link explaining danger of using index as key
2017-11-29 14:05:15 -08:00
Brian Vaughn
157501a48c Split last sentence into its own paragraph 2017-11-29 14:05:05 -08:00
Brian Vaughn
97d4949954 Wordsmithing 2017-11-29 13:59:13 -08:00
Brian Vaughn
80f3b83d83 Merge pull request #341 from jyash97/jyash97-patch-1
Added FAQ for Syncing State and props
2017-11-29 13:14:20 -08:00
Brian Vaughn
e28248ec89 Wordsmithing 2017-11-29 13:13:04 -08:00
Dan Abramov
07839cb6c4 Document suppressHydrationWarning (#369)
* Document suppressHydrationWarning

* Add it to the reference
2017-11-29 13:38:56 +00:00
Dan Abramov
f58c9a514e Move the style note to be more prominent (#370)
* Move the style note to be more prominent

* Fix the link

* Simplify example
2017-11-29 13:37:26 +00:00
Alex
c1952f5a22 add missing / 2017-11-28 15:32:58 -08:00
Liam O'Boyle
ec4dc73b8f Note that polyfills are required for some supported browsers too.
The "Browser Support" section of react-dom indicates that IE9 and above
is supported, but fails to note that the support does require additional
polyfills in some cases.  A link is added to the javascript environment
docs which already explains the polyfills required (Map, Set and rAF).
2017-11-29 09:02:08 +11:00
Dan Abramov
5efca01e9e Mention virtualization in "Optimizing Performance" (#357)
* Mention virtualization in "Optimizing Performance"

* nits

* Oops
2017-11-28 19:45:51 +00:00
Yash Joshi
13ec56b1cc Documented the difference between props and State 2017-11-28 19:52:59 +05:30
Dan Abramov
23e8b9f577 Update "optimizing performance" instructions for React 16 (#356) 2017-11-28 14:05:48 +00:00
ksenna
12d5edafc0 Update docs referencing referencing /src files (#291)
* Remove text referencing /src files

* Add link to stack reconciler on 15-stable branch
2017-11-28 13:47:17 +00:00
Alex
19886e3eac Merge pull request #346 from alexkrolick/dom-elements-style-attr
Add note about best practices for style attribute
2017-11-27 10:39:49 -08:00
Alex
03c6ed8747 add link to styling faq 2017-11-27 10:30:06 -08:00
Alex
bd422de439 make css-in-js language more neutral
CSS-in-JS is not endorsed but it's also not discouraged; trying to find middle ground.
2017-11-27 02:39:45 -08:00
Alex
501293a425 Update explanation of CSS-in-JS
A post-merge comment for the original PR for this section mentioned that not all libs actually extract static stylesheets (and docs shouldn't explain implementation details of 3rd party libs unnecessarily, as a rule)
2017-11-27 02:31:28 -08:00
Alex
d739beef67 treat className+*.css as default styling approach 2017-11-27 02:26:26 -08:00