akxcv / vuera

:eyes: Vue in React, React in Vue. Seamless integration of the two. :dancers:
MIT License
4.3k stars 242 forks source link

added ability to wire-up custom events #62

Closed walts81 closed 6 years ago

walts81 commented 6 years ago

With this change you can wire-up custom events from the Vue component in React...

<ViewWrapper component={MyVueComponent} on={{'custom-event': e => console.log(e)}} />

akxcv commented 6 years ago

Related to #54

akxcv commented 6 years ago

Hi @walts81 and thank you for the PR! Could you please fix the lint error? And also could you please add a test for this behaviour?