Self-review: Implementing scroller position with render props - Advanced React
Considering the MousePosition component receives a prop called render, which is a function, what are valid options of JSX returned from the component?
return render(<div>{mousePosition}</div>);
return (
<div>
render({mousePosition})
...
eplus.dev1 min read