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

156
Views
Los accesorios de desestructuración no funcionan en los libros de cuentos de React JS

Me estoy perdiendo algo aquí cuando desestructurar mis accesorios. Estoy escribiendo un libro de cuentos, pero parece que estoy haciendo algo mal con la desestructuración.

este es mi componente

 export function WrapTitle ({title,children}) : TitleProps & ChildrenProps){ return (<>h1>{titles}</h1> {children}</>) }

Entonces en Stories Cuando paso así no funciona

 <Wraptitle {...args}><Wraptitle>

Cómo paso los argumentos es (Esto es un libro de cuentos)

 WithTitle.args = { title:'The is title' }

y cuando paso asi esta funcionando

 <Wraptitle title = {"This is header"}><Wraptitle>

¿Me estoy perdiendo algo aquí?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tienes que escribir props.PROPERTY sintaxis, esto funcionará:

 export function WrapTitle (props) : TitleProps & ChildrenProps){ return (<>h1>{props.title}</h1> {props.children}</>) }
about 4 years ago · Juan Pablo Isaza Report
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!