question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue in React, how would 1 handle events from a vue component vm.$emit('eventnnaeme', stuff)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
Lee182commented, Aug 12, 2018

Yeah sure, I’m glad you might implement this

// My React render method
return <MyVueComponent
someProp={this.state.sompProp}
someOtherProp={this.state.someOtherProp}
on={{
  change: this.handleChange.bind(this),
  loading: this.handleLoading.bind(this)
}} />
// some where in the vue component
vm.$emit('change', {})
vm.$emit('loading', true)
1reaction
akxcvcommented, Oct 6, 2018

Closed by #62

Read more comments on GitHub >

github_iconTop Results From Across the Web

Events Near Me - Facebook
Upcoming events near you and other things to do that fit your interest.
Read more >
Eventbrite - Discover Great Events or Create Your Own & Sell ...
Eventbrite brings people together through live experiences. Discover events that match your passions, or create your own with online ticketing tools.
Read more >
Create your event at Events.com - Online Event Registration ...
Create your event while saving time and money. Our management, marketing, and sponsorship tools are tailored to you. Build an online presence.
Read more >
Fathom Events
Fathom Events is the home of cinematic experiences that offer high quality, affordable entertainment events broadcast to the big screen.
Read more >
Event Definition & Meaning - Merriam-Webster
noun ; a · something that happens : occurrence ; b · a noteworthy happening ; c · a social occasion or activity...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found