Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how do I get the name of the component passed as Outlet? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
venego
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
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
props.children
. not necessarily the name of the function
.
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
infer parameters of function passed as prop on a react component
TTC
Theo's Typesafe Cult / questions
3y ago
truncating data recieved as string[] passed down to the component based on the width of tr element.
TTC
Theo's Typesafe Cult / questions
3y ago
Ui component name
TTC
Theo's Typesafe Cult / questions
3y ago
How to type return of hook based on string passed as argument?
TTC
Theo's Typesafe Cult / questions
3y ago