how do I get the name of the component passed as Outlet?

I'm using react-location for routing, and I'm passing some components as children to a this
sharedLayout
component.
<sharedLayout>
  <Outlet />
</sharedLayout>


and inside of shared layout I need to know which component I'm passing in
props.children
. not necessarily the name of the function.
Was this page helpful?