Add render props in react
This commit is contained in:
1 parent
9becdfb3bf
commit
acfb6aa0bc
1 file changed
+8
-1
@@ -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