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
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
5 years ago
Brian Vaughn
129df30d2c
Profiler API docs ( #2176 )
* First pass at Profiler API docs
5 years ago
Kevin Menard
986381c568
Update an example to use a more accurate abbreviation. ( #2201 )
5 years ago
Colin
eef56ffdcf
Add a relevant FAQ link in "Thinking In React" ( #2170 )
6 years ago
Peng Jie
5dca78b7e3
docs(hooks): fix typo ( #2161 )
6 years ago
Alex Krolick
a0911655e0
Revert "Added option for more cdns. ( #2144 )" ( #2146 )
This reverts commit b84fb3d281
.
6 years ago
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.
6 years ago
Hamid Sarfraz
b84fb3d281
Added option for more cdns. ( #2144 )
6 years ago
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.
6 years ago
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>
6 years ago
Natalie Marleny
b57265b8f9
[Documentation] Fix: Update link to Chrome Accessibility Inspec… ( #2134 )
6 years ago
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
6 years ago
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>
6 years ago
Sibiraj
d71c6e3695
Remove tooling support info in fragment docs ( #2096 )
6 years ago
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
6 years ago
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`
6 years ago
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>
6 years ago
Jesse Jackson
1705c25143
Improve grammar ( #2106 )
6 years ago
Vlad
4d1197b3be
Add description of PropTypes.exact ( #1581 )
Info from https://github.com/facebook/prop-types#usage
6 years ago
Riley Avron
cb5a61cdbf
Add missing function call to example ( #2102 )
An example for useEffect omitted the actual invocation of the function in question.
6 years ago
Emma
39f30d4211
Update thinking-in-react.md ( #2098 )
Follow up to https://github.com/reactjs/reactjs.org/pull/2095#discussion_r296498172
6 years ago
Emma
92ad9c2f7a
Update thinking-in-react.md ( #2095 )
Please refer to https://justsimply.dev for the thinking behind these proposed changes.
6 years ago
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.
6 years ago
Jan Rochalski
263ef8b5fd
chore/and operator instead of ternary operator ( #2064 )
6 years ago
Kent C. Dodds
6d006ccc33
Update React Testing Library name ( #2061 )
Since the package was renamed to `@testing-library/react` we're trying to encourage people to drop writing "react-testing-library" in favor of "React Testing Library"
6 years ago
kyarik
c93286c071
Some fixes to the Accessibility guide ( #2047 )
Added missing code indentation; removed an extra "an"
determiner in a sentence.
6 years ago
Brendan Falkowski
23b242edc4
Say "disconnecting" not "plugging out" your mouse ( #2037 )
The previous phrase "plugging out" is uncommon in English. Saying "disconnecting" is better than "unplugging" because many mouse users have wireless mice, and is more accurate.
6 years ago
Angelos Orfanakos
2dccf4699d
Remove redundant "reading" word from hooks faq ( #2036 )
6 years ago
Ilkwon Sim
57b6d76841
Fix wrong sentences line break
6 years ago
Max Wizard K
1f27bba948
Updating link to the article about React internals ( #2022 )
6 years ago
Gavin Elster
8d9b002130
Fix typo ( #2021 )
* Fix typo
Adds a missing word
* Update content/docs/hooks-faq.md
Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>
6 years ago
Gavin Elster
dda5b49f45
Swap word order ( #2020 )
Figure this was a typo
6 years ago
Niklas Mollenhauer
e12c973cf1
Update core-js includes ( #2007 )
The path seem to have changed in the latest `core-js` package. https://github.com/zloirock/core-js/tree/master/packages/core-js
6 years ago
Matthew
8e6343b5a6
Fix broken webpack production guide link in "Optimizing Performance" page. ( #2011 )
6 years ago
Misha Moroshko
b3d4fe5efb
Keep hook links consistent ( #1323 )
6 years ago
Tajammul Pasha
2d664c178a
fixed svelte-js broken link ( #2010 )
6 years ago
Brent
06deefa567
Update hooks-effect.md ( #2005 )
6 years ago
Aaron Mast
d2d2ee420d
Fix useReducer example ( #1992 )
6 years ago
Alex Krolick
c8703314dd
update faq on perf with function props ( #1994 )
6 years ago