Commit Graph

316 Commits

Author SHA1 Message Date
Blessing Ebowe
107f7df4bf Update reference-react-dom-server.md (#497) 2018-01-08 13:25:29 +00:00
Sanjay Purswani
62113ec265 Document how highlight updates works in the optimizing performance pa… (#387)
* Document how highlight updates works in the optimizing performance page - closes #360

* Change example animated gif to not mention Redux

* Be more explicit about the theory and workflow around using Highlight Updates - closes #360

* improve grammar, correctly label link to #avoid-reconciliation

* Trim content to its essentials and move to a more relevant place in Avoid Reconciliation section - Closes #360

* Make requested changes to wording and host images internally

* Minor rewording
2018-01-07 13:01:51 +00:00
Alex
60faba4e8e Merge pull request #486 from HeroProtagonist/code-split-example-edit
Properly nest components in router
2018-01-06 09:50:22 -09:00
HeroProtagonist
8b9850820c div -> switch 2018-01-06 13:28:36 -05:00
Dan Abramov
d5af622629 Mention that we don't recommend inheritance in the component doc (#487) 2018-01-06 14:23:07 +00:00
HeroProtagonist
f601ba1dfc Properly nest components in router 2018-01-05 18:04:27 -05:00
Henry Q. Dineen
df94acd78e fix a couple broken links (#485) 2018-01-05 18:42:40 +00:00
Alex
bb4d0fc0c2 Revert wording 2018-01-04 20:29:24 -09:00
Joshua Comeau
4636461c79 Spelling nits for code-splitting.md
Really enjoyed the newest code-splitting docs!

I caught a minor spelling error: `interuptive` -> `interruptive`. I decided to indulge the writer in myself, and chose to rephrase some things that I thought could be clearer.

That said, I recognize that many of the changes I'm making are subjective. More than happy to simply fix the typo, but I thought I'd submit this to see if others agree with my phrasing changes.
2018-01-04 21:19:47 -05:00
James Kyle
615c660245 Init Code-Splitting docs (#348)
* Init Code-Splitting docs

* Fix <Route path="/"> to use exact

* Fix code splitting typos

* Fix note formatting on the website

* Minor tweaks

De-emphasize webpack, mention Next and Gatsby
2018-01-04 21:09:29 +00:00
Alex
eb98181dc3 Merge pull request #458 from uberfabulous/patch-1
Clarify Component capital letter caveat example.
2018-01-04 08:05:32 -09:00
Alex
77793be4ca Update components-and-props.md 2018-01-04 08:03:55 -09:00
Alex
801a51fce2 Update capital-letter caveat 2018-01-04 07:53:28 -09:00
JobbyM
efc9fb02e0 missing a parenthesis (#480) 2018-01-03 12:50:18 +00:00
Brian Vaughn
e177ed195e Merge pull request #323 from vishalvrv9/vishalvrv9-docs-inputfile-improvement
doc: added documentation for input type=file
2018-01-02 10:31:00 -08:00
Brian Vaughn
82cf82486a Wordsmithing
Replaced "a <input>" with "an <input>" in a couple of places.

Simplified wording slightly to (hopefully) be easier for non-native speakers to read.
2018-01-02 10:27:34 -08:00
shawn wang
e80abf73fd add second Contributing to React video link (#479)
as suggested by @gearon to help inspire others https://twitter.com/dan_abramov/status/948156772455518208
2018-01-02 17:50:19 +00: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
uberfabulous
dd604052fe Clarify Component capital letter caveat example.
Added "...the capital 'W' in..." to help reader focus their attention on the capital 'W' within `Welcome` for minor clarity improvement.
2017-12-22 15:07:04 +08:00
Vishal Raj
33aa0f6b4b gatsby remark embed snippet inclusion 2017-12-22 12:11:29 +05:30
Vishal Raj
dfa21190d3 Merge branch 'master' of https://github.com/vishalvrv9/reactjs.org into vishalvrv9-docs-inputfile-improvement 2017-12-22 10:48:37 +05:30
Vishal Raj
093e1128c7 Merge branch 'master' of https://github.com/reactjs/reactjs.org into vishalvrv9-docs-inputfile-improvement 2017-12-21 17:04:14 +05:30
Vishal Raj
dd41d34c20 modification: gatsby-remark-code-plugin 2017-12-21 16:33:32 +05:30
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