Skip to content
Discussion options

You must be logged in to vote

Console.log is passed to the onEmojiSelect event in the documentation

This means that whatever arguments is sent to onEmojiSelect, they are being sent to console.log. In your example, e is the emoji object / data.

const data = e

I would personally name that variable emoji instead of e.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by EtienneLem
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