mockComponent function
- @JS('React.addons.TestUtils.mockComponent')
- ReactClass componentClass,
- String mockTagName
Pass a mocked component module to this method to augment it with useful methods that allow it to be used as a dummy React component. Instead of rendering as usual, the component will become a simple
(or other tag
if mockTagName is provided) containing any provided children.
Implementation
@JS('React.addons.TestUtils.mockComponent')
external ReactClass mockComponent(ReactClass componentClass, String mockTagName);