Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom render and retrieving props from composed #20

Open
theKashey opened this issue May 15, 2018 · 0 comments
Open

Custom render and retrieving props from composed #20

theKashey opened this issue May 15, 2018 · 0 comments

Comments

@theKashey
Copy link

This example

import { adopt } from 'react-adopt'
import { Value } from 'react-powerplug'

const Composed = adopt({
  value1: <Value initial={1}>{render}</Value>,
  value2: <Value initial={2}>{render}</Value>,
})

will work perfectly, while this -

const Composed = adopt({
  value1: ({ value1, render }) => <Value initial={value1}>{render}</Value>,
  value2: ({ value2, render }) => <Value initial={value2}>{render}</Value>,
})

Will not. Result will contain value2, but any sight of value1 will lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant