effector / reflect

Easily render React components with everything you love from ☄️ effector.

Home Page:https://reflect.effector.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Combine store state with props to create prop for view

sergeysova opened this issue · comments

commented
const B = reflect({
  view: A,
  bind: {
    foo: $data,
  },
  mapProps: {
    bar: { source: $data, fn: (data, props) => data[props.key] }
  },
})

Still actual!)

Sounds kinda Sourced fields from Farfetched 🤔

So, I'm going to stick with the following API:

const B = reflect({
  view: A,
  bind: {
    foo: $data,
    bar: { source: $data, fn: (data, props) => data[props.key] }
  },
})

PR will be done in a week 🤗