Skip to content

Releases: CanopyTax/async-decorator

Release list

v0.3.0

Choose a tag to compare

@blittle blittle released this 05 Jul 20:07

Add a ref to the decorated component. If you need to get access to the inner component that AsyncDecorator is wrapping, access it through the .el property. For example:

@AsyncDecorator
class MyComponent extends React.Component {
  ...
}

class OtherComponent extends React.Component {
  render() {
    return <MyComponent ref={ref => {
      // access the inner component with `ref.el`
    }}
  }
}