parent
52e729d212
commit
564f48540e
1 changed files with 3 additions and 3 deletions
@ -1,11 +1,11 @@ |
||||
# 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. |
||||
|
||||
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/) |
||||
- [Render Props Pattern](https://www.patterns.dev/posts/render-props-pattern/) |
||||
- [Render Props Pattern](https://www.patterns.dev/posts/render-props-pattern/) |
Loading…
Reference in new issue