ReshowComponent - react-atomic/reshow GitHub Wiki
Extend from ReshowComponent or ReshowRealTimeComponent
!!Important!! If your class overwrited with following functions you need call parent by yourself.
- componentDidMount
- super.componentDidMount();
- componentWillReceiveProps(nextProps)
- super.componentWillReceiveProps(nextProps);
- componentWillUnmount
- super.componentWillUnmount();
Safe way
The safe way was call reshow(YourComponent) again;
import React from 'react';
import {reshow, ReshowComponent} from reshow;
class YourComponent extends ReshowComponent
{
/* your code */
}
export default reshow(YourComponent);