Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

227
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda