React patterns: Combining hooks with child functions for composable data components
I'd like to share a quick example of a React pattern I find myself reaching for a lot recently. Well really it's a combination of two patterns:
A React hook which gets some data or application state
A provider component which accepts a child functi...
danbahrami.hashnode.dev3 min read