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

221
Views
¿Cómo acceder al componente funcional dentro de una función desde un archivo JS externo?
export default function HorizontalLabelPositionBelowStepper() { const [activeStep, setActiveStep] = React.useState(0); const [completed, setCompleted] = React.useState({}); const handleComplete = () => { const newCompleted = completed; newCompleted[activeStep] = true; setCompleted(newCompleted); handleNext(); };
 <button className="footerSaveButton" disabled={ selectedCoach || selectedValue || selectedCustomer ? disabled : !disabled } onClick={routeChange} // onClick= {() => {routeChange();handleComplete();}} > Save and Continue </button>

Hay un componente funcional de tipo const dentro de una función predeterminada de exportación. Quiero acceder a ese componente funcional al hacer clic en mi botón que también está dentro de una función de un archivo JS externo.

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!