getProps method

Map getProps()

Returns the props associated with the mounted React composite component instance.

If you are rendering a function or DOM component using mount, calling getProps will throw a StateError.

See getInstance for more information about this limitation.

Implementation

Map getProps() {
  if (!_isCompositeComponent) {
    throw StateError(
        'getProps() is only supported when the rendered object is a composite (class based) component.');
  }

  return over_react.getProps(getInstance());
}