Using custom hooks in place of "render props"
Sharing code between react component with custom hooks
Tags: react, reacthooks, javascript