Commit Graph

276 Commits

Author SHA1 Message Date
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
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
Yash Joshi
a084d924fa Added FAQ for Synching State and props 2017-11-25 10:34:10 +05:30
Matthew Holman
4adc854d6d Added link explaining danger of using index as key 2017-11-24 22:39:19 -06:00
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