| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2018-04-10 | 719 Bytes | |
| v0.3.1 source code.tar.gz | 2018-04-10 | 60.6 kB | |
| v0.3.1 source code.zip | 2018-04-10 | 63.9 kB | |
| Totals: 3 Items | 125.3 kB | 0 | |
Changelog
- [x] Add support for inline composition using
<Adopt>component (ac09efe4)
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:
:::js
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>