1
0
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:
Kamran Ahmed
2022-08-12 20:05:07 +04:00
parent 9becdfb3bf
commit acfb6aa0bc

View File

@@ -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>