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.
* 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>
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.
* 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
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.
* 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>
* 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
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"
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.