Alan Zhang
4a7cc4a7f1
fix links ( #2257 )
2019-08-20 21:05:43 -07:00
Ben Fletcher
de497e2503
Clarify effect of ‘only’ language ( #2264 )
...
Clarify that ‘only’ does not preclude `<Content />` from rendering.
2019-08-18 12:51:56 -07:00
Dan Abramov
68cedb300f
Deemphasize Immutable.js in docs ( #2253 )
2019-08-16 15:37:43 +01:00
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.
2019-08-15 23:23:48 +01:00
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
2019-08-15 23:22:05 +01:00
Dan Abramov
af4db1d1bb
Remove "highlight updates" from docs
...
This feature isn't available in New DevTools (yet?)
2019-08-15 23:16:35 +01:00
Max Thirouin
fbb03df5d6
Hooks intro: Remove message about React Native support ( #2244 )
...
Already landed for a while now.
2019-08-15 20:53:58 +03:00
Kirill Poddubnyi
a21a881774
Update reference-profiler.md ( #2247 )
...
Fix code indentation
2019-08-15 20:52:40 +03:00
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
2019-08-15 09:48:51 -07:00
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.
2019-08-15 15:25:28 +01:00
Volodymyr Klymenko
40a652c781
Fix link to recipes ( #2235 )
2019-08-12 11:34:04 -07:00
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
2019-08-12 13:24:09 +03:00
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 >
2019-08-12 10:08:30 +03:00
Behnam Mohammadi
8cd5737ba1
Update componentDidCatch argument name like demo ( #2180 )
2019-08-12 10:07:53 +03:00
Eric Stout
975b4d2adb
Fix typo ( #2183 )
2019-08-12 10:04:47 +03:00
Michael Hienle
40ae16ac09
Mention Rollup ( #2187 )
2019-08-12 10:03:11 +03:00
Hao Dong
efc3958ba3
Added missing function bracket in hooks-effect.md ( #2207 )
2019-08-12 09:31:32 +03:00
Dan Abramov
7382e4e4ec
Link FAQ to testing recipes
2019-08-10 17:02:40 +01:00
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
2019-08-10 17:00:47 +01:00
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.
2019-08-09 19:21:31 +01:00
Sunil Pai
911f5d1a39
[easy] copyedit testing-recipes.md ( #2220 )
...
2 small changes
- consistent data-testid everywhere
- one wrong assertion
2019-08-09 16:42:47 +01:00
Stavros Tsourlidakis
164a82b79b
Fix a typo ( #2214 )
2019-08-09 11:06:05 +01:00
Arihant Verma
4559e1c20e
Type fix 'Diffrent' ➡️ 'Different' ( #2215 )
...
Type fix 'Diffrent' ➡️ 'Different'
2019-08-09 10:58:44 +01:00
Mark Adamson
4463b791ed
typo fix: 'although' ( #2216 )
2019-08-09 10:58:17 +01:00
Neil Kistner
3f6d60a229
Update testing-recipes.md ( #2212 )
...
* Update testing-recipes.md
Update timers section code to match described situation
* Missed a spot
2019-08-09 10:57:45 +01:00
Dan Abramov
c2d1794c46
Capitalization
2019-08-08 23:08:20 +01:00
Sunil Pai
8be8bf9d2f
Testing Docs ( #2165 )
...
* Testing Docs
This expands the testing docs for reactjs.org. It adds 3 main docs -
- testing.md: An entry point to the testing docs
- testing-recipes.md: Common patterns when writing tests for React Components.
- testing-environments.md: Setting up your testing environment.
With help from @alexkrolick, @kentcdodds, @gaearon
2019-08-08 22:43:59 +01:00
Brian Vaughn
129df30d2c
Profiler API docs ( #2176 )
...
* First pass at Profiler API docs
2019-08-08 14:17:59 -07:00
Kevin Menard
986381c568
Update an example to use a more accurate abbreviation. ( #2201 )
2019-08-06 12:47:30 -04:00
Colin
eef56ffdcf
Add a relevant FAQ link in "Thinking In React" ( #2170 )
2019-07-25 09:54:48 -07:00
Peng Jie
5dca78b7e3
docs(hooks): fix typo ( #2161 )
2019-07-21 22:12:27 -07:00
Alex Krolick
a0911655e0
Revert "Added option for more cdns. ( #2144 )" ( #2146 )
...
This reverts commit b84fb3d281 .
2019-07-14 10:12:46 -07:00
Taeheon Kim
dc650ecdae
Update docs about an existence of .elementType ( #2145 )
...
Hi, I've met the same issue on [here](https://github.com/facebook/prop-types/issues/200 ) at storybook and found the following [PR](https://github.com/facebook/prop-types/pull/211 ) that adds the `elementType` feature. It could find the doc on npm, but not the official react site.
2019-07-14 01:34:36 +03:00
Hamid Sarfraz
b84fb3d281
Added option for more cdns. ( #2144 )
2019-07-14 01:34:14 +03:00
Mikko Vedru
4af9f2dcd1
Reduce confusion about adding additional fields to .this ( #2142 )
...
As a new React learner, this part was a bit confusing as I though that it was referencing `() => this.tick()` part of the code. My addition would help at least people like me.
2019-07-11 11:11:59 -07:00
UmaR Aamer
06dd4cbe97
React Native added support for hooks in 0.59 ( #2121 )
...
* React Native added support for hooks in 0.59
React Native 0.59 and above already support React Hooks, this line is no longer necessary, causes confusion for some people that it is not working right now. We can also mention React Native version if needed.
* update with react native mention of hooks support
* Update content/docs/hooks-faq.md
suggested changes
Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com >
2019-07-09 18:33:15 +03:00
Natalie Marleny
b57265b8f9
[Documentation] Fix: Update link to Chrome Accessibility Inspec… ( #2134 )
2019-07-09 09:34:06 +03:00
Neil de Carteret
18f662ce41
Update hooks-faq.md ( #2113 )
...
* Update hooks-faq.md
I tripped up slightly while reading this example for using the callback form of a state setter inside an effect. I've added a few lines that might help a hook newbie grok the differences between the examples.
* Update hooks-faq.md
* Update hooks-faq.md
2019-07-01 08:46:54 -07:00
Sibiraj
c024001caf
Update Production Optimization docs to use terser ( #2112 )
...
* Update Production Optimization docs to use terser
* Update Optimizing Performance.md
* Fix typo
Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com >
2019-07-01 12:39:11 +03:00
Sibiraj
d71c6e3695
Remove tooling support info in fragment docs ( #2096 )
2019-06-30 10:50:44 +03:00
ZachMayer
03260d7149
[docs] Updated required node and npm versions to match CRA docs in 'docs/create-a-new-react-app.html' ( #2099 )
...
https://facebook.github.io/create-react-app/docs/getting-started
2019-06-30 10:42:08 +03:00
Dom
aa84270837
Fixed broken link to discuss.react.org ( #2107 )
...
* Replaced broken discuss.reactjs.org link
On the how-to-contribute page, there is a broken link under the https://reactjs.org/docs/how-to-contribute.html#how-to-get-in-touch section. As outlined in https://github.com/reactjs/reactjs.org/issues/2080 `discuss.reactjs.org` isn't reachable.
I edited the text to display `Discussion Forums` which links to https://reactjs.org/community/support.html#popular-discussion-forums (as I was unable to find an official reactjs discussion forum).
* fixed text case
changed `Discussion Forums` to `Discussion forums`
2019-06-30 10:36:19 +03:00
Matt Wood
6a6b9170f4
Fixed minor code-splitting.md typo ( #1292 )
...
* Fixed minor code-splitting.md typo
* Update code-splitting.md
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com >
2019-06-30 10:33:05 +03:00
Jesse Jackson
1705c25143
Improve grammar ( #2106 )
2019-06-30 10:31:25 +03:00
Vlad
4d1197b3be
Add description of PropTypes.exact ( #1581 )
...
Info from https://github.com/facebook/prop-types#usage
2019-06-29 11:05:42 -07:00
Riley Avron
cb5a61cdbf
Add missing function call to example ( #2102 )
...
An example for useEffect omitted the actual invocation of the function in question.
2019-06-25 17:15:19 -07:00
Emma
39f30d4211
Update thinking-in-react.md ( #2098 )
...
Follow up to https://github.com/reactjs/reactjs.org/pull/2095#discussion_r296498172
2019-06-24 14:54:37 -07:00
Emma
92ad9c2f7a
Update thinking-in-react.md ( #2095 )
...
Please refer to https://justsimply.dev for the thinking behind these proposed changes.
2019-06-23 14:07:22 -07:00
iqbal125
899411236d
old link to outdated version of jest ( #2088 )
...
This link is pointing to a much older version of Jest. I have added a link to the current page for snapshot testing for the current version of jest.
2019-06-18 14:16:38 -07:00
Jan Rochalski
263ef8b5fd
chore/and operator instead of ternary operator ( #2064 )
2019-06-10 08:53:53 +03:00