-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d65237
commit 9232a63
Showing
7 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# useImperativeHandle | ||
|
||
π¨βπΌ We've got a new thing for you to work on. Kellie π§ββοΈ put together a | ||
`Scrollable` component which is a wrapper around a `div` that has a way to | ||
scroll to the top and bottom of the content. We want to be able to add buttons | ||
to the `App` that will allow users to scroll to the top and bottom of the | ||
content when clicked. | ||
π¨βπΌ We've got a new thing for you to work on. | ||
|
||
So we need you to `useImperativeHandle` to expose a `scrollToTop` and | ||
π§ββοΈ I've put together a `Scrollable` component which is a wrapper around a `div` | ||
that has a way to scroll to the top and bottom of the content. We want to be | ||
able to add buttons to the `App` that will allow users to scroll to the top and | ||
bottom of the content when clicked. | ||
|
||
π¨βπΌ So we need you to `useImperativeHandle` to expose a `scrollToTop` and | ||
`scrollToBottom` method from the `Scrollable` component. These methods are | ||
already implemented, you just need to expose them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters