mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-08 00:00:42 +02:00
Add render props in react
This commit is contained in:
@@ -1 +1,8 @@
|
||||
# Render props
|
||||
# Render Props
|
||||
|
||||
The term “render prop” refers to a technique for sharing code between React components using a prop whose value is a function.
|
||||
|
||||
A component with a render prop takes a function that returns a React element and calls it instead of implementing its own render logic.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://reactjs.org/docs/render-props.html'>Render Props in React</BadgeLink>
|
||||
|
Reference in New Issue
Block a user