Commit Graph

1051 Commits

Author SHA1 Message Date
Renato Alves
446ba517d7 Add PropType instructions for function components (#3403)
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-11-25 10:20:47 +01:00
Nathan Novielli
28e7b103a5 Update the broken links in the Overview section (#3394) 2020-11-19 19:53:21 +01:00
Yuqing Chen
b2363564ab fix: typo (#3388) 2020-11-18 20:45:16 +01:00
Abhishek Jain
957276e1e9 Update typechecking-with-proptypes.md with a minor addition (#3386) 2020-11-16 12:01:39 +01:00
zytjs
fc6e864f1d Update legacy-event-pooling.md (#3380) 2020-11-16 11:50:53 +01:00
Federico Zivolo
eafba20b3d docs: document prod vs dev behavior difference in componentDidCatch (#2168) 2020-11-14 13:26:15 +01:00
MohammadReza
f595f22c72 Added reconciliation link. (#2614)
Co-authored-by: Sunil Pai <threepointone@oculus.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-11-12 20:10:12 +01:00
Wojciech Golaszewski
a9239a586e More explicit docs about uncontrolled forms. (#3382) 2020-11-12 13:18:19 +01:00
Corentin Smith
9b8dee54f2 Remove reference to babel-polyfill (#3381) 2020-11-12 13:16:20 +01:00
krizinx
ab2e95f0ce Update faq-ajax.md (#3363)
Changed item.name in key property to item.id
2020-11-02 13:01:54 -08:00
Scott Siegel
8e4b0bca81 Fix missing "in" typo (#3359) 2020-10-31 16:04:29 +03:00
Jhon Mike
18ac8f7197 minor adjustments to the documentation (#3354) 2020-10-28 11:17:34 +03:00
Dan Abramov
1d40cf0ac9 Remove broken Glitch template (#3350)
This is

1) using real CRA unnecessarily despite being in the browser so is slow to boot
2) shows "error" immediately to me and doesn't load
3) doesn't seem to get updated with newer React releases

We can readd it if it's fixed and doesn't have these problems (which none of the other templates do).
2020-10-26 18:20:00 +00:00
Sam Bigelow
21fe4c829b Fix a grammatical error in Context.md (#3352) 2020-10-26 16:40:37 +01:00
Dan Abramov
6682068641 Tweak event delegation notes 2020-10-23 22:59:13 +01:00
Dan Abramov
16a03c0c60 Add note about onScroll in 17 2020-10-23 22:55:31 +01:00
Dylan Pierce
4a62c0ab77 More docs onFocus and onBlur events (#3044)
* More docs onFocus and onBlur events

Including more substantial documentation around the `onFocus` and `onBlur` events that aren't so common sense on first look.

* Update content/docs/reference-events.md

Co-authored-by: Darsh Shah <imdarshshah@gmail.com>

* Update reference-events.md

Adding an example of `relatedTarget` to determine orgin of onblur or onfocus events

* Update reference-events.md

* Update content/docs/reference-events.md

Fixing `onBlur` example bug.

Co-authored-by: Darsh Shah <imdarshshah@gmail.com>

* Update reference-events.md

Fixing spacing in `onBlur` `onFocus` examples and tagging them with `javascript`

* Update reference-events.md

* Update reference-events.md

* Update reference-events.md

Co-authored-by: Darsh Shah <imdarshshah@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2020-10-23 22:54:07 +01:00
Dan Abramov
02d17e4217 Update more docs to 17 (#3345) 2020-10-23 21:21:14 +01:00
Toru Kobayashi
64d067f2c0 Remove event pooling and SyntheticEvent#persist from documents (#3207)
* remove event pooling and SyntheticEvent#persist from documents

Syntheticevent#event exists in v17, but it does nothing at the version

* add a page for legacy event pooling for _redirects

* add a warning e.persist() is no longer pooled

* Update legacy-event-pooling.md

* docs: update a redirect link for event pooling

* Update legacy-event-pooling.md

* Update legacy-event-pooling.md

* Update reference-events.md

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2020-10-23 21:14:24 +01:00
Ezio Tedeschi
8c2865e3ab fix(content/docs): Fix broken link (#3329)
Change broken link in documentation for Babel editors.
2020-10-14 11:46:12 +02:00
Kiriakos Naiskes
d50460490f Fix ajax hooks example (#3322) 2020-10-13 12:10:49 -07:00
Alexey Pyltsyn
371156e9c3 Remove line breaks to simplify syncs 2020-10-13 10:32:30 +03:00
Theodore Chu
845338012c Update design-principles.md (#3314)
Updated link to React Devtools package repository
2020-10-08 10:08:59 +02:00
Jeswin Simon
f92897b27b Updated conditional rendering doc with a note on Falsy values (#3296) 2020-10-01 12:10:16 +02:00
Andrew Beaven
df7fbff422 Remove superfluous code in faq-functions.md example (#3293)
The sections above this describe how to use the arrow function to bind functions to the component instance to avoid explicit binding in the constructor. This example though, uses both the arrow function and explicitly binds the function. I realise the point of this particular example isn't to describe the binding process, but considering the sections that immediately proceed it, I think it'd be good to avoid confusion here.
2020-09-30 12:25:58 -07:00
Sam Robbins
ccc8e034e4 Update code-splitting.md (#3294) 2020-09-30 18:15:36 +03:00
Wojciech Maj
79bdfa0504 Change links to React lifecycle methods diagram to use HTTPS (#2973) 2020-09-29 10:30:47 +03:00
Stephanie Coates
1f7a4b9574 update @babel/plugin-syntax-dynamic-import link (#3046)
Docs previously linked to https://classic.yarnpkg.com/en/package/babel-plugin-syntax-dynamic-import for Babel 6. Updated link to point to plugin compatible with Babel 7.
2020-09-29 10:26:34 +03:00
Mustafa Mansour
8a914c9367 Update addons-animation.md (#3151)
Fix key value in code snippet.
2020-09-29 10:14:49 +03:00
Thai Pangsakulyanont
eaa502f750 Fix wrong highlighted line numbers in nested Profiler example (#3218) 2020-09-29 10:08:48 +03:00
Alexey Pyltsyn
d4e2730148 Use relative links 2020-09-29 09:59:28 +03:00
Chris Wilson
ec07e80be0 Remove prev/next links from the Advanced Guide (#3269) 2020-09-21 10:19:11 +02:00
李鸿章
b24cabac64 Code the null and undefined values (#3203) 2020-09-08 13:48:07 +02:00
Evgeniy Boreyko
657658aa1f Fix React Native Testing Library link (#3240) 2020-09-03 18:10:47 -07:00
Toru Kobayashi
da8ef8b0f6 Explain where act comes from (#3237)
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-09-02 09:31:52 +02:00
kamlesh tajpuri
25cc703d1f Updating the docs to reflect the fact that React.memo can be used wit… (#3159)
* Updating the docs to reflect the fact that React.memo can be used with both class and functional components

* removed misleading para
2020-08-30 18:31:45 +01:00
MinYuan
f673d85616 Add useLayoutEffect to those hooks with deps (#3232) 2020-08-30 12:04:03 +02:00
Shihabudheen US
cd5b2ad74f Prefixing unstable_ (#3226)
Prefixed `unstable_` for the experimental ReactDOM.createRoot().
2020-08-24 20:43:30 +01:00
Eduard Poracký
d16f1ee795 Add next and previous links to Advanced Guides (#540)
Co-authored-by: Eduard Poracký <eporacky@trionyx.sk>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-08-23 19:44:57 +02:00
Sebastian Silbermann
6a1e325098 Reference select guide instead of documenting selected attribute (#3224)
Co-authored-by: 宋文强 <pwnn@users.noreply.github.com>
2020-08-23 19:38:06 +02:00
Edgar Muentes
860a510d38 Clarify that synthetic events aren’t exactly the same as native events (#866)
Co-authored-by: Edgar Muentes <Edgar.Muentes@aexp.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-08-23 19:33:54 +02:00
Eduard Rastoropov
b9c59963ff Add possible element types that accept propTypes (#386)
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-08-23 19:06:50 +02:00
Alireza Ayinmehr
e2c2fe2642 Sync Reservation Component with CodePen example (#3221) 2020-08-22 08:56:12 +02:00
PhistucK
c64ee93706 Mentioned that value is supported in <select> (#3217) 2020-08-20 16:32:20 +02:00
HKalbasi
fb71011c30 Replace old babel plugin link with new one (#3215) 2020-08-19 20:51:12 +01:00
Dan Abramov
1cc8aa3f03 Remove outdated comparison 2020-08-19 19:08:47 +01:00
石发磊
f21896aee4 missing export default for contact.js (#3209) 2020-08-18 22:26:33 -04:00
epsi
63332462bb Update hooks-overview.md (#3110)
* Update hooks-overview.md

Changed 'is' -> 'are'

* Update content/docs/hooks-overview.md

Co-authored-by: Ricky <rickhanlonii@gmail.com>

Co-authored-by: Ricky <rickhanlonii@gmail.com>
2020-07-26 23:25:28 -04:00
Dowen Robinson
24f47fbc1e Removed deadlink from Event System section and added correct links (#3136)
* Removed deadlink from Event System section and added correct links

* Changed wording of Event System section and removed react-native events link

* Update codebase-overview.md

Co-authored-by: Dowen Robinson <drobinson@ad.accelclaims.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2020-07-24 19:44:56 +01:00
Rafaela Ferro
2bf673bcfb Channel naming was "Stable" instead of "Latest" (#3131) 2020-07-22 13:27:16 +01:00