v0.4.1
Changelog
- Feat: add map props feature (1ae14f8)
import { adopt } from 'react-adopt'
import { Value } from 'react-powerplug'
const Composed = adopt({
greet: <Value initial="Hi" />,
name: <Value initial="John" />,
},
// mapping props from results
({ greet, name }) => ({
message: `${greet.value} ${name.value}`,
}))
const App = () => (
<Composed>
{({ message }) => /* ... */}
</Composed>
)