Use React.PureComponent instead of pure-render-decorator

This commit is contained in:
Ken-Håvard Lieng 2017-02-17 01:46:39 +01:00
parent 531792b14a
commit e6892ccd2d
19 changed files with 57 additions and 139 deletions

View file

@ -1,13 +1,11 @@
import React, { Component } from 'react';
import React, { PureComponent } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import pure from 'pure-render-decorator';
import TabList from '../components/TabList';
import { select } from '../actions/tab';
import { hideMenu } from '../actions/ui';
@pure
class App extends Component {
class App extends PureComponent {
render() {
const { showTabList, children } = this.props;
const mainClass = showTabList ? 'main-container off-canvas' : 'main-container';