christianalfoni / cerebral-react-baobab

A Cerebral package with React and Baobab
MIT License
13 stars 1 forks source link

Require Component Did Mount #4

Closed saulshanabrook closed 9 years ago

saulshanabrook commented 9 years ago

I see this in all the examples for components:

  componentDidMount() {
    this.props.signals.appMounted();
  }

Should that be included in all of our components?

saulshanabrook commented 9 years ago

Oh I assume appMounted just a signal in the example you are giving. So to access signals in a component, use this.props.signals.<signal name>.

christianalfoni commented 9 years ago

Exactly :-)