Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
How do i define a component inside what may be a string

i am new to react can anyone help, I am trying to use accordion to display a registration page i built, the page has four different fields, one for uploading of pictures, the second for address, the third for general information and the fourth for pricing, now here is the challenge.... I want to use accordion to define each field so that the field doesnt just appear as a long form, but you would need to click the field for it to display.... I have gotten pretty much everything right, i got stuck in how to place my components inside the accordion body....Note, I am using a bootstrap template.... Here is the code.

<Accordion defaultActiveKey="0">
  <Accordion.Item eventKey="0">
    <Accordion.Header> Photo </Accordion.Header>
    <Accordion.Body>
      <PhotoUploader />
    </Accordion.Body>
  </Accordion.Item>
  <Accordion.Item eventKey="1">
    <Accordion.Header>General information</Accordion.Header>
    <Accordion.Body>
      <GeneralInfo />
    </Accordion.Body>
  </Accordion.Item>
  <Accordion.Item eventKey="2">
    <Accordion.Header>Address</Accordion.Header>
    <Accordion.Body>
      <AddLocation />
    </Accordion.Body>
  </Accordion.Item>
  <Accordion.Item eventKey="3">
    <Accordion.Header> Pricing </Accordion.Header>
    <Accordion.Body>
      <AddPrice />
    </Accordion.Body>
  </Accordion.Item>
</Accordion>

Where <PhotoUploader/> , <GeneralInfo/> , <AddLocation/> , <AddPrice/> are my field components. I know how i placed them in is wrong, please whats the correct method.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda