parent
4bcadc7313
commit
59bedd2100
1 changed files with 8 additions and 1 deletions
@ -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> |
||||||
|
Loading…
Reference in new issue