H
H
h0w4rd2019-10-02 22:28:42
React
h0w4rd, 2019-10-02 22:28:42

How to add "sub-element"?

Good evening. Tell me how it is done that "Navbar.Brand" is added to a certain place in the "Navbar".
Like this:

<Navbar bg="dark" variant="dark" expand="lg">
  <Navbar.Brand href="#home">{ props.siteName }</Navbar.Brand>
  <Navbar.Toggle aria-controls="NavbarContent" />
</Navbar>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
h0w4rd, 2019-10-02
@h0w4rd

Understood. Those "sub-elements" are props.children.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question