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

87
Views
exportar datos de socket para usar en múltiples componentes Reaccionar

Código de reacción:

 import { socket } from './SocketConnection' export function socket() { socket.emit('getip','1') socket.on('ipaddr', (message)=>{ return message } ) }

Quiero obtener la respuesta del código de socket anterior y tengo que usarlo en varios componentes. No sé cómo proceder. el código anterior es mi intento cuando intento importarlo en otro componente, no funcionó. quiero usar la respuesta del socket en otros componentes por favor guíenme

about 4 years ago · Juan Pablo Isaza
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!