react-sidenav tries to be non opinionated when it comes to rendering navigation items. With this approach, users should be able to render any element as needed while the library provide state transition via context.
To use, render the top most SideNav element with Nav elements as children. You can then decide what to render under each Nav element. By accessing the NavContext, you can decide to render an element based on the state it is currently on.
The example below uses styled-components to conditionally render styling the child of a Nav element depending on the state from the context