Wes Lord
060d129aa0
Change usePrevious example in hooks-faq.md ( #2387 )
In the example, `count` is initialized to 0 and then multiplied by 100... which is 0.
Changing this to addition so the previous value will differ from the current value.
5 years ago
David Beitey
9c2e893774
Use gist URLs instead of RawGit in React docs ( #2385 )
RawGit is being shut down (eg Oct 2019, https://rawgit.com/ ) and this change uses the direct links to the files as served from gist.github.com. The same files are being served, just that the links are only dependent on GitHub's gist service.
5 years ago
Cheng Lou
453a3bd4f2
Swap order of increment and decrement in Counter examples ( #2382 )
I think UI-wise, decrement comes first.
5 years ago
Alexey Pyltsyn
87685fd27f
Improve Code Splitting
5 years ago
Michael Hienle
4136300bff
Mention Rollup ( #2379 )
5 years ago
Bouwe K. Westerdijk
647b639259
React Router also supports hooks now ( #2374 )
5 years ago
Michael Lustig
9705d2796b
Fix error ( #2370 )
5 years ago
Andrew Clark
36651d721a
Update outdated info in contributing doc ( #2369 )
The sections on branch organization and versioning were outdated. I also
added a section on feature flags.
5 years ago
Andrew Clark
db0dc83473
Update Versioning FAQ ( #2368 )
* Update Versioning FAQ
Includes a new section describing our approach to minor releases, and
why they don't always include new features.
* Brian's edits
* Delete the adverb
5 years ago
Mojtaba Izadmehr
5cdb85b5e5
Add doc for context displayaName ( #2367 )
* Add doc for context displayaName
* Add highlight for js doc
* Fix context display name link
* Fix context displayName comment
5 years ago
Cool4ZBL
2efb26ee47
Update hooks-faq.md ( #2340 )
Add missing `{`
5 years ago
Sergei Cherniaev
1f2b1dae94
Docs: a typo and bottom nav links ( #2339 )
* typo fixed
* bottom nav links on previous and next articles removed like in other advanced guides
5 years ago
Jacob Bandes-Storch
ec0cf5cf2c
Update CodeSplitting to clarify that lazy() must be used with Suspense ( #2306 )
* Update CodeSplitting to clarify that lazy() must be used with Suspense
* Update code-splitting.md
5 years ago
Adro.codes
8cf11dc3e9
Update web-components.md ( #2333 )
Updated custom-elements-es5-adapter link. Pointed to a repo that has moved.
5 years ago
Rootul Patel
fb8fdb8f6a
Improve grammar ( #2331 )
Remove extraneous "as"
5 years ago
Gjum
f732f259ae
Add missing comma ( #2315 )
Fixes syntax error
5 years ago
Arshita Kakkar
941f54180e
Update getting-started.md ( #2312 )
Line 122 -
Updated the hyperlink from "[on a separate page"] to "on a [separate page]".
5 years ago
Paul O’Shannessy
3eb3ed9fd8
Adopt the Contributor Covenant ( #2311 )
5 years ago
Andrew
24cced1a9b
Remove duplication ( #2308 )
5 years ago
Sanghyeon Lee
b0a55fbff3
Edit the location of react-events package more precisely ( #2297 )
5 years ago
Michael Antczak
6b3891ad39
Update link to stable React versions in docs ( #2293 )
It currently points to download page which I think does not exist anymore, just redirects to getting started instead.
5 years ago
Sergei Cherniaev
519a3aec91
missed link in fast navigation added ( #2289 )
5 years ago
Shubham Tiwari
ac9f9f1a4a
fixing broken link ( #2281 )
5 years ago
Parnab Sanyal
c7f56456ec
Added Formik in the list of libraries, which use render props ( #2287 )
5 years ago
Alan Zhang
4a7cc4a7f1
fix links ( #2257 )
5 years ago
Ben Fletcher
de497e2503
Clarify effect of ‘only’ language ( #2264 )
Clarify that ‘only’ does not preclude `<Content />` from rendering.
5 years ago
Dan Abramov
68cedb300f
Deemphasize Immutable.js in docs ( #2253 )
5 years ago
Jeremy Deutsch
71ec859df2
Update hooks-faq.md with info for React Native ( #1875 )
For the FAQ question "Which versions of React include Hooks?", the current version of React Native (which supports Hooks) is now listed, along with a link to the blog post for that release.
5 years ago
Max Thirouin
972d835775
Hooks intro: Add reference to React Native support in 0.59 ( #2250 )
Following #2244 https://github.com/reactjs/reactjs.org/pull/2244
5 years ago
Dan Abramov
af4db1d1bb
Remove "highlight updates" from docs
This feature isn't available in New DevTools (yet?)
5 years ago
Max Thirouin
fbb03df5d6
Hooks intro: Remove message about React Native support ( #2244 )
Already landed for a while now.
5 years ago
Kirill Poddubnyi
a21a881774
Update reference-profiler.md ( #2247 )
Fix code indentation
5 years ago
Victor Akerele
0006b39438
Updated babel installation instructions for Flow ( #2248 )
updated how to install babel presets to use the newer namespace conventions that comes with newer versions of Babel, version 7.
My react app kept crashing when I tried installing Flow.
I have updated the docs on Flow's documentation, then I saw the same issue here.
Here is the PR on Flow's docs just in case - https://github.com/facebook/flow/pull/7856
5 years ago
Thomas P
78270c581d
Rephrase confusing documentation about TestRenderer.create return ( #2246 )
The addition of the `TestRenderer.act()` method to the documentation broke the logical flow and "The returned instance has the following methods and properties." is now confusing since it's the `act()` method that is now documented afterwards. This commit aims at clarifying what is returned.
5 years ago
Volodymyr Klymenko
40a652c781
Fix link to recipes ( #2235 )
5 years ago
James Innes
ddbd064d41
Add React Spring to Animation on Styling FAQ ( #2147 )
Spring is a popular library on top of motion with some useful developments
5 years ago
Lukasz Ostrowski
6a1d86c712
Links to React Redux hooks api ( #2202 )
* Links to React Redux hooks api
Since Hooks are already released for Redux, link the docs
* Update hooks-faq.md
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
5 years ago
Behnam Mohammadi
8cd5737ba1
Update componentDidCatch argument name like demo ( #2180 )
5 years ago
Eric Stout
975b4d2adb
Fix typo ( #2183 )
5 years ago
Michael Hienle
40ae16ac09
Mention Rollup ( #2187 )
5 years ago
Hao Dong
efc3958ba3
Added missing function bracket in hooks-effect.md ( #2207 )
5 years ago
Dan Abramov
7382e4e4ec
Link FAQ to testing recipes
5 years ago
Todd Chaffee
12a84023f1
Update testing-recipes.md with English correct. ( #2224 )
"Get a hold" should be the phrasal verb "get ahold". See https://www.quickanddirtytips.com/education/grammar/a-hold-or-ahold?page=1
5 years ago
Sunil Pai
53cce1dc2e
Adds a TOC to testing-recipes.md ( #2221 )
Nothing, fancy, just a list of links to the sections on the page. Also took the opportunity to add dividers between sections, and Title Case the titles.
5 years ago
Sunil Pai
911f5d1a39
[easy] copyedit testing-recipes.md ( #2220 )
2 small changes
- consistent data-testid everywhere
- one wrong assertion
5 years ago
Stavros Tsourlidakis
164a82b79b
Fix a typo ( #2214 )
5 years ago
Arihant Verma
4559e1c20e
Type fix 'Diffrent' ➡️ 'Different' ( #2215 )
Type fix 'Diffrent' ➡️ 'Different'
5 years ago
Mark Adamson
4463b791ed
typo fix: 'although' ( #2216 )
5 years ago
Neil Kistner
3f6d60a229
Update testing-recipes.md ( #2212 )
* Update testing-recipes.md
Update timers section code to match described situation
* Missed a spot
5 years ago
Dan Abramov
c2d1794c46
Capitalization
5 years ago