Skip to content

Conversation

@NidhiPednekar
Copy link

The distinction between target and currentTarget is crucial: event.target references the specific
element that triggered the event (potentially a child element), while event.currentTarget always
references the element to which the event listener is attached (the star component itself).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant