Add render props in react

pull/1657/head
Kamran Ahmed 2 years ago
parent 9becdfb3bf
commit acfb6aa0bc
  1. 9
      content/roadmaps/103-react/content/101-react-advanced-topics/103-render-props.md

@ -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…
Cancel
Save