Put the original Monitor on statics

This commit is contained in:
Dan Abramov 2015-09-24 23:38:10 +03:00
parent 49bb120444
commit a4306d6ba4

View File

@ -6,6 +6,8 @@ export default function connectMonitor(Monitor) {
const ConnectedMonitor = connect(state => state, ActionCreators)(Monitor);
class DevTools extends Component {
static Monitor = Monitor;
static propTypes = {
store(props, propName, componentName) {
if (!props.store) {