v0.3.1
Changelog
- Add support for inline composition using
<Adopt>
component (ac09efe)
Inline composition
If you dont care about typings and need something more easy and quick, you can choose to use a inline composition by importing <Adopt>
component and passing your mapper as prop:
import React from 'react'
import { Adopt } from 'react-adopt'
import { Value } from 'react-powerplug'
const mapper = {
greet: <Value initial="Hi" />,
name: <Value initial="John" />
}
<Adopt mapper={mapper}>
{({ greet, name }) => /* ... */}
</Adopt>