# Passing Arguments from event handlers

**URL:** <https://forum.codewithmosh.com/t/passing-arguments-from-event-handlers/10698>\
**Category:** React\
**Created:** [February 15, 2022, 11:57am UTC](https://forum.codewithmosh.com/t/passing-arguments-from-event-handlers/10698 "2022-02-15T11:57:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![programmer](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@programmer](https://forum.codewithmosh.com/u/programmer)\
**Post date:** [February 15, 2022, 11:57am UTC](https://forum.codewithmosh.com/t/passing-arguments-from-event-handlers/10698/1 "2022-02-15T11:57:18Z")

</div>

Passing the argument from the event handler in React does not work.

Trying to pass the movie object from handleLike event to the event handler in the movies.jsx module, getting some error, the heart icon is not rendered and the whole page appears blank.

Please guide on this point, why is it so? I am not able to proceed because of this.

Please update the course when and where required? Thanks!

---

<div class="post-metadata">

**Author:** ![ThangTruong](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/thangtruong/32/3223_2.png) [@ThangTruong](https://forum.codewithmosh.com/u/ThangTruong)\
**Post date:** [February 15, 2022, 1:19pm UTC](https://forum.codewithmosh.com/t/passing-arguments-from-event-handlers/10698/2 "2022-02-15T13:19:27Z")

</div>

Hi Programmer,

It works well for me. You can check the version of bootstrap and font-awesome you installed. Ensuring you put the right name class. double check it with current version on font-awesome.

I hope this could help you.

Regards,  
Thang
