Skip to content

How to handle dynamic data when using usePress from react-aria? #2241

Answered by snowystinger
mryechkin asked this question in Q&A
Discussion options

You must be logged in to vote

You could make a Button component. It's the same way you'd handle any hook that needs to be run separately for each instance in the loop.
Then you just pass your handlerFunction and name to the Button

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mryechkin
Comment options

Answer selected by snowystinger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants