Commit Graph

262 Commits

Author SHA1 Message Date
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
MICHAEL JACKSON
d5477adf95 Fix some links 2017-11-29 12:06:14 -08:00
MICHAEL JACKSON
af78367ec3 Add "Caveats" section 2017-11-29 12:06:14 -08:00
MICHAEL JACKSON
4d285a70a7 Add doc about Render Props 2017-11-29 12:06:14 -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
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
Alex
bc3cae5e83 add link to classname docs 2017-11-27 02:22:00 -08:00
Yash Joshi
149c49542f Removed Line breaks 2017-11-27 15:30:32 +05:30
Yash Joshi
7416caf9af Updated-2 2017-11-27 15:28:27 +05:30
Alex Krolick
fc00989cfc add note about best practices for style attribute 2017-11-26 23:52:55 -08:00
Yash Joshi
eaa73084a7 Updated
Removed the import statement, expanded the previous commit
2017-11-27 11:27:36 +05:30
Yash Joshi
027ec4b2ed Updated FAQ
Added a note that CSS-in-JS is not mandatory adn How to import css files.
2017-11-26 11:25:12 +05:30
Dan Abramov
12e32e50ac Add pragmatic advice on file structure (#338)
* Add pragmatic advice on file structure

* Update faq-structure.md
2017-11-24 22:03:49 +00:00
Brian Vaughn
0079e8829b Merge pull request #322 from robdodson/patch-1
Add mention of custom-elements-es5-adapter
2017-11-24 11:07:35 -08:00
Brian Vaughn
aedbd8f8dc Merge pull request #324 from hozefaj/patch-1
for inline styles add example for units on values
2017-11-24 08:32:47 -08:00
Brian Vaughn
b33a587ec5 Tweak wording 2017-11-24 08:32:27 -08:00
Leonid Khachaturov
77aab0bb80 Add section on Kotlin (#327) 2017-11-22 13:15:55 +00:00
Steven Syrek
e38ba413ec Fix typo (#326) 2017-11-22 13:15:24 +00:00
Dan Abramov
60f56bf5b9 Mention yarn test-prod in contributing guide 2017-11-22 13:12:37 +00:00
Hozefa
71a45da3c3 for inline styles add example for units on values 2017-11-21 16:50:54 -08:00
Brian Vaughn
295f97f750 Merge pull request #317 from alexreardon/adding-requestanimationframe-throttling
Adding requestAnimationFrame to rate limiting section
2017-11-21 14:45:36 -08:00
Brian Vaughn
81b3049532 Small wording tweaks 2017-11-21 14:40:25 -08:00
Alex Reardon
d4630485a0 Moving to new raf-schd cancel syntax. Cleaning up language 2017-11-22 09:26:40 +11:00
Rob Dodson
e11e19e7fe Add mention of custom-elements-es5-adapter
Including the es5 adapter fixes the issue of transpiled custom elements not working in browsers like Chrome and Safari.
2017-11-21 13:18:06 -08:00
Brian Vaughn
8c8a876995 Merge pull request #318 from iRoachie/typescript
docs(static type checking): Improved TypeScript docs
2017-11-21 12:45:59 -08:00
Kyle Roach
2439b55bf6 Copy changes 2017-11-21 15:53:39 -04:00
Dan Abramov
7d8abd8f13 Fix a code mistake 2017-11-21 14:29:15 +00:00
Raincal
7a069c4848 Update lifting-state-up.md (#319) 2017-11-21 12:05:52 +00:00
Kyle Roach
e993dc5a3a docs(static type checking): Improved TypeScript docs 2017-11-21 01:02:39 -04:00
Mike Wilcox
654c6b7df9 Update componentDidMount link (#316)
Currently when clicking this link, it tries to open link as `https://reactjs.org/https://reactjs.org/docs/react-component.html#mounting` and just spins.
2017-11-21 02:46:25 +00:00
Alex Reardon
1bef49c72f Adding information about requestAnimationFrame to rate limiting section. Closes #312 2017-11-21 13:43:50 +11:00
Dan Abramov
d73bb5d287 Minor tweaks 2017-11-20 22:36:54 +00:00
Dan Abramov
c3b103dcb6 Minor fix 2017-11-20 22:18:07 +00:00
Dan Abramov
986d97788c Minor FAQ updates (#308)
* Don't use experimental syntax unless necessary

* Edit another page

* Update another page

* Unrelated bikeshed on virtual DOM

* Please, no *.jsx, we don't recommend it

* Update faq-structure.md

* Minor updates

* Update faq-ajax.md

* Update faq-functions.md

* Add binding explanation
2017-11-20 22:05:00 +00:00
Brian Vaughn
0ba8920310 Added some additional wording 2017-11-20 13:03:33 -08:00
Alex
78c285f86b Inline event.persist explanation 2017-11-20 11:27:54 -08:00