How to get data after selecting emoji to parse later? #718
-
I can not figure out how to get the data of the emoji itself. Console.log is passed to the onEmojiSelect event in the documentation. Please tell me how to get this object if you pass your callback.
|
Beta Was this translation helpful? Give feedback.
Answered by
EtienneLem
Nov 7, 2022
Replies: 2 comments
-
This means that whatever arguments is sent to const data = e I would personally name that variable |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
EtienneLem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This means that whatever arguments is sent to
onEmojiSelect
, they are being sent toconsole.log
. In your example,e
is the emoji object / data.I would personally name that variable
emoji
instead ofe
.