diff --git a/README.md b/README.md index cc59275..64f4b75 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ const columns = [ {name: 'producer', width: '230px'} ]; -export default class Example extends PureComponent { +export default class Example extends Component { constructor(props) { super(props); diff --git a/package.json b/package.json index 30907c5..cb6d842 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unity-table", - "version": "0.0.1", + "version": "0.0.2", "description": "Table component for React", "main": "dist/index.js", "scripts": { @@ -9,10 +9,13 @@ "build": "webpack" }, "author": "frux ", + "contributors": [ + "Anton Konev (https://antonkonev.com/)" + ], "license": "ISC", "dependencies": { "prop-types": "^15.5.10", - "react": "^15.6.1" + "react": "^16.0.0" }, "devDependencies": { "@storybook/addon-info": "^3.1.9", diff --git a/src/SimpleTable/index.jsx b/src/SimpleTable/index.jsx index 149f925..ef5d13e 100644 --- a/src/SimpleTable/index.jsx +++ b/src/SimpleTable/index.jsx @@ -1,4 +1,4 @@ -import React, {PureComponent} from 'react'; +import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {CLASSES} from '../constants'; import {Table, Thead, Tbody, Th, Tr, Td} from '../index'; @@ -10,7 +10,7 @@ const thClassName = (columnName, sort) => { return `${CLASSES.th}_sortable ${isSorting ? ` ${CLASSES.th}_sort_${sortDir}` : ''}`; }; -export default class SimpleTable extends PureComponent { +export default class SimpleTable extends Component { getHandleSortClick(field) { return () => { const {sort, onSortChange} = this.props; diff --git a/stories/SimpleTable/Sorting.jsx b/stories/SimpleTable/Sorting.jsx index 2997700..741dfc3 100644 --- a/stories/SimpleTable/Sorting.jsx +++ b/stories/SimpleTable/Sorting.jsx @@ -1,4 +1,4 @@ -import React, {PureComponent} from 'react'; +import React, {Component} from 'react'; import {SimpleTable} from '../../dist'; import {films as tableHead} from '../helpers/tableHead'; import {films as mapData} from '../helpers/mapData'; @@ -13,7 +13,7 @@ const columns = [ {name: 'producer', width: '230px'} ]; -export default class Example extends PureComponent { +export default class Example extends Component { constructor(props) { super(props);