React Render Props

preview_player
Показать описание
We take a look at how to use Render Props in React. Render props allow you to share code between React components using a prop whose value is a function. It is a powerful pattern that makes your components more flexible and more reusable. We go through an example here and incrementally make changes using render props.

# LINKS
Рекомендации по теме
Комментарии
Автор

Adding a ’GetJson' component did make the work a lot cleaner. That's a nice way for dealing with AJAX requests. I like it. Thanks.

abdoarbab
Автор

Great tutorial for render props, I now have better understanding of it, thanks! Keep up the good work.

wshand
Автор

Clear and to the point. Cleared a lot of things

CHIRANJIBNANDY
Автор

The JSON component @ 13:00 is great for rendering static web pages but not a page where the user can search and render different lists with a conditional.

cookycow
Автор

Is it possible to get the state from the same render props in multiple file without calling the render props again?

jackeelim