Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1a89ecd

Browse files
committed
Removed line in basic hooks doc
1 parent acbe986 commit 1a89ecd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

‎docs/usage/basic-hooks.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ After `increment` is called, the current `count` value now reflects the new valu
5959

6060
You may have also noticed that we also wrapped the `increment` call in `act`. This utility simulates how our hook will act in a browser, allowing us to update the values within it. For more details on `act`, please see the [React documentation](https://fb.me/react-wrap-tests-with-act).
6161

62-
So there we have it, the first test for our `useCounter` hook.
63-
6462
## Providing Props
6563

6664
Sometimes a hook relies on the props passed to it in order to do it's thing. For example the `useCounter` hook could easily accept the initial value of the counter as a prop:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /