Commit Graph

357 Commits

Author SHA1 Message Date
Henrique Sosa
72e8051fa3 Fix misspelling 2018-02-05 02:57:58 -02:00
Dan Abramov
9a953858d6 Add more references to setState batching (#583) 2018-02-04 22:39:30 +00:00
Zeb DeOs
53a600087b Add semicolon for example code style consistency (#575) 2018-02-03 02:53:53 +00:00
Hugh Prior
788d5094d8 Update lists-and-keys.md (#559)
I think the word "root" is misleading here. For me the root implies a single item, and the <li> here is more of a leaf. I think we can avoid all confusion simply by removing the word.
2018-02-01 09:08:16 -08:00
sventunus
18aee608ec Update code-splitting.md (#556)
Fixed a typo: "A good place **is** to start is with routes" => "A good place to start is with routes"
2018-01-29 01:10:04 +00:00
Dan Abramov
aba7619177 Tweak state FAQ (#551)
* Tweak state FAQ

* Update faq-state.md
2018-01-24 18:05:24 +00:00
William Shepherd
8a7e75206b Fix grammar (#550) 2018-01-24 09:36:58 -08:00
Hugh Prior
6e22b51b26 Update faq-state.md (#549)
Fix typo.
2018-01-24 09:32:58 -08:00
Joseph Race
794c0e0756 Update code-splitting.md (#546) 2018-01-23 09:36:15 -08:00
David DeAngelis
cb0870514b Update faq-functions.md
found a small syntax error in example
2018-01-17 15:17:56 -05:00
Brian Vaughn
8448de7ed9 Merge pull request #470 from danielsbird/rendering-elements-codepen
Move examples of rendering elements from CodePen into ./examples
2018-01-16 10:15:58 -08:00
Dan Abramov
3e6aaebbd7 Add a note about disabling extensions when profiling (#528) 2018-01-15 23:21:32 +00:00
Ernesto García
9b20285d1d Update fragments example to use JSX syntax (#520)
* Update fragments example to use JSX syntax

* Use more standard JSX notation for fragments

* Bring back arrays-based example

* Remove keys in fragment, not needed for static items

* Add note about fragments syntax existing since v16.2
2018-01-14 00:51:35 +00:00
Daniel Bird
72e7547ef0 Embed examples using gatsby-remark-embed-snippet 2018-01-13 13:50:24 -05:00
Sophie Alpert
b48ecc8b7e Tweak wording 2018-01-12 17:10:06 -08:00
MICHAEL JACKSON
80773961c9 Small clarification
Fixes #514
2018-01-12 14:43:43 -08:00
Thai Pangsakulyanont
bc83db2fc1 Add a missing ; in renderTheCat example (#515) 2018-01-12 19:52:05 +00:00
Michael Jackson
6efa02d16c Merge pull request #355 from mjackson/render-props
Add doc about Render Props
2018-01-12 10:15:42 -08:00
MICHAEL JACKSON
dcd53fd43d Rework section about using children prop 2018-01-12 09:58:57 -08:00
Alex Krolick
3b908cdcbc SImplify function-as-child example 2018-01-11 23:56:33 -08:00
Alex Krolick
ac34b9c696 Call out usage of props.children as render prop 2018-01-11 23:44:11 -08:00
Alex Krolick
96d302aef0 Add "Using Props Other Than Render" to Render Props 2018-01-11 23:20:57 -08:00
Alex
581eafc049 Add mini example to top of Render Props 2018-01-11 22:47:38 -08:00
Dennis Dang
1da66cd968 Fix typo 2018-01-11 14:55:40 -08:00
Ian Sutherland
6158ab4666 Corrected yarn link instructions on How to Contribute page. (#511) 2018-01-11 02:25:14 +00:00
Jonathan Pool
fdf409a7d1 Grammatical disambiguation (#504)
Prevents interpretation as “JSX is closer to JavaScript than HTML is”. The latter is obviously true, but the apparent meaning is the former, which is less obvious.
2018-01-10 13:22:23 +00:00
Brian Vaughn
3dca82bfe9 Merge pull request #442 from davidnguyen179/reference-test-renderer/note__react-test-render_react_react-dom
react-test-render/Cannot read property 'ReactCurrentOwner' of undefined
2018-01-09 11:30:54 -08:00
Brian Vaughn
c07c8be506 Formatting nit 2018-01-09 11:29:48 -08:00
Sam
2df0f5af4d Pedantic language change (#500)
* Pedantic language change

This page led to the creation of a bad question on a job interview test, leading someone to believe that functions and objects are primitives. They are not.

https://developer.mozilla.org/en-US/docs/Glossary/Primitive

* Verbiage change
2018-01-08 19:23:54 +00:00
Dan Abramov
800c0079d9 Be more specific about browsers that need polyfills 2018-01-08 14:29:03 +00:00
Kaycee
2044bf1ef9 Update state-and-lifecycle.md (#496) 2018-01-08 13:26:06 +00:00
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
Dzung Nguyen
77e8d19087 Merge branch 'master' of https://github.com/reactjs/reactjs.org into reference-test-renderer/note__react-test-render_react_react-dom 2018-01-03 07:04:34 +07:00
Dzung Nguyen
6e7c3ca53f update words for react packages version 2018-01-03 06:40:25 +07: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