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..d1163ab 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,6 +9,9 @@ "build": "webpack" }, "author": "frux ", + "contributors": [ + "Anton Konev (https://antonkonev.com/)" + ], "license": "ISC", "dependencies": { "prop-types": "^15.5.10", @@ -31,7 +34,7 @@ "postcss-loader": "^2.0.6", "postcss-nested": "^2.0.4", "raw-loader": "^0.5.1", - "react-dom": "^15.6.1", + "react-dom": "^16.0.0", "storybook-readme": "^3.0.5", "style-loader": "^0.18.2", "webpack": "^3.3.0", 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);