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

229
Views
error de reacción. importar api y mostrar imágenes e imprimir sobre su detalle

Usó una API y luego hizo visible solo la parte de la foto que menas bebe y al hacer clic, el usuario puede ver los detalles de eso.
strGlass y strDrinkThumb son de api. pero no corriendo.

comentar la parte onclick funciona bien. ingrese la descripción de la imagen aquí

ahora usando la función onlick desaparece todo

ingrese la descripción de la imagen aquí

 import React from "react"; // import index from "./src" const DrinkList = (props) => { const handleTextShow = (drinkDetail) => { console.log(drinkDetail); }; return ( <> {props.drinks.map((drink, index) => ( <div> <img src={drink.strDrinkThumb} alt="drink" width="300" height="300"> {/* hello */} onClick={() => handleTextShow(drink.strGlass)} </img> {/* <h4> {drink.strInstructions} </h4> */} {/* <Details /> */} </div> ))} </> ); }; export default DrinkList;
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!