kadirahq / mantra

Mantra - An Application Architecture for Meteor
https://kadirahq.github.io/mantra/
978 stars 52 forks source link

how to get REF of containers component #203

Open achtan opened 8 years ago

achtan commented 8 years ago
class MyComponent extends React.Component {
  ....
  dataINeed() {
    return this.state
  }
  ...
}

const MyComponentContainer = composeAll(
  composeWithTracker(composer),
  useDeps(mapper)
)(ExamQuestion);

const MainComponent = () => {
  return <div>
    <MyComponent ref={c => console.log(c.dataINeed())} />
    <MyComponentContainer /> // how to get components REF ???
  </div>
}