Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

224
Views
How can I send data from a child component to a child component without using props?

Is this possible And how to do this. I worked on a similar thing in vuejs like

this.$emit("send",payload)

and then listen in another component

this.$on("send",(payload) => {
/and do something the in another component
}

How to Do this in ReactJS

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

you can use a react context https://reactjs.org/docs/context.html or redux https://redux.js.org/

about 4 years ago · Juan Pablo Isaza Report

0

What you want is called event bus in vue.js, but it is an anti-pattern so it was removed from the API in vue 3.

However if you really liked that approach, you can probably achieve it with an external library that implements the event emitter interface.

You can read more about it here with provided example: https://v3-migration.vuejs.org/breaking-changes/events-api.html#event-bus

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!