1
I am creating a system, and instead of putting the 'sub-categories' of entries below the menu, I am creating as tabs, when you click on each menu and then have the other accesses.
Example: by clicking on Registrations, update my content next to 'tabs' (Listgroup) of all types of registrations I will have. I would like you to select these items (register 1, register 2 ... in the image)update the page contents with the form fields.
I searched for the useState
of the Act, but I couldn’t understand how to implement it in this routine, could help me?
My tabs, I made as a horizontal list, using the component of the React-botstrap (Listgroup).
<ListGroup horizontal>
<ListGroup.Item variant="info">teste 1</ListGroup.Item>
<ListGroup.Item variant="info">teste 2</ListGroup.Item>
<ListGroup.Item variant="info">teste 3</ListGroup.Item>
<ListGroup.Item variant="info">teste 4</ListGroup.Item>
<ListGroup.Item variant="info">teste 5</ListGroup.Item>
<ListGroup.Item variant="primary">teste 6</ListGroup.Item>
</ListGroup>
When selecting one of these items, I would like you to update the Card
.
<Card>
<Card.Header>
<Card.Title as="h4">Mudar o conteúdo aqui</Card.Title>
<p className="card-category">
Conteúdo aqui
</p>
</Card.Header>
<Card.Body>
ffff
</Card.Body>
</Card>
I’m using:
NodeJs 14.15.5
React-bootstrap