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>
<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.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server