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

205
Views
ReactJs, la función de llamadas de mi servidor no funciona

Estoy trabajando en un proyecto de reacción Js y tengo un problema.

Intento llamar a una función desde atrás (que funciona bien) pero no lee mi función y no muestra las impresiones de mi función.

Hay: mi función:

 const getEvents = async() => { console.log("PLZ") const test = await getAllEvents(); console.log(test) } export const Calendar = () => { return ( <StyledCalendar> {console.log("AHHHHHHH")} {getEvents} </StyledCalendar> )}

Acorté el retorno para que sea más fácil de leer.

y ahí está mi función de llamadas:

 export const getAllEvents = async() => await axios.post(`${SERVER_URL}/calendar/getAllEvent `, { });

No imprime (el archivo console.log (PLZ)), pero imprime el archivo console.log (AHHHHHHH) ¡Gracias por sus respuestas!

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!