Download Latest Version v0.6.0 source code.tar.gz (62.1 kB)
Email in envelope

Get an email when there's a new version of React Adopt

Home / v0.3.1
Name Modified Size InfoDownloads / 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

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>
Source: README.md, updated 2018-04-10