Skip to content

v0.5.1

Compare
Choose a tag to compare
@pedronauck pedronauck released this 11 May 05:13
· 6 commits to master since this release

Changelog

  • Add render prop to composed component (thanks @ctrlplusb for the idea)
  • Improve some types
import { adopt } from 'react-adopt'
import { Value } from 'react-powerplug'

const Composed = adopt({
  foo: <Value initial="foo" />
})

const App = () => (
  <Composed render={({ foo }) => /* ... */ } />
)