Render props are still valid for the common use case where React hooks may not always be the right choice. This article explains when to pick each pattern.
Can you guess which code snippet is more efficient and why?
I started a twitter discussion with the same question a while back, trying to understand if people have strong opinions about React hooks and render props. Opposing the two is not a fantasy, but comes from a practical concern.
#react #reactjs #react-hooks #javascript #web-development