Releases: gnapse/render-props-compose
Releases · gnapse/render-props-compose
Receiving named combined props
This release adds support for receiving the combined props in the render prop as a single object argument, instead of as a positional list of arguments.
You can achieve this by passing the components to compose in an object with the keys that correspond to them in the resulting combined props:
const App = () => (
<Composed components={{ mouse: Mouse, timer: Timer, counter: Counter }}>
{({ mouse, timer, counter }) => ( ... )}
</Composed>
)
v0.1.0: Merge pull request #5 from gnapse/render-prop-name
Add support to customize the render prop name