mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-21 00:21:35 +02:00
chore: add resource under react:rendering:render-props
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
# 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.
|
The term 'render props' 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.
|
A component with a render prop takes a function that returns a React element and calls it instead of implementing its own render logic.
|
||||||
|
|
||||||
Visit the following resources to learn more:
|
Visit the following resources to learn more:
|
||||||
|
|
||||||
- [Render Props in React](https://reactjs.org/docs/render-props.html)
|
- [Render Props in React](https://react.dev/learn/passing-props-to-a-component)
|
||||||
- [How to create a Render Prop Component](https://www.robinwieruch.de/react-render-props/)
|
- [How to create a Render Prop Component](https://www.robinwieruch.de/react-render-props/)
|
||||||
- [Render Props Pattern](https://www.patterns.dev/posts/render-props-pattern/)
|
- [Render Props Pattern](https://www.patterns.dev/posts/render-props-pattern/)
|
Reference in New Issue
Block a user