Skip to content

Commit

Permalink
chore(deps) migrate to react ^16.3 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneHlushko authored Mar 14, 2020
1 parent a4b184f commit 99d0438
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 40 deletions.
2 changes: 1 addition & 1 deletion dist/vote.bundle.js

Large diffs are not rendered by default.

99 changes: 75 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"node-sass": "^4.13.1",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^2.1.6",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"sass-loader": "^6.0.3",
"standard-version": "^4.2.0",
"style-loader": "^1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion src/components/dropdown/dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class Dropdown extends React.Component {
);
}

componentWillMount() {
componentDidMount() {
if ( document ) {
document.addEventListener(
'click',
Expand Down
6 changes: 0 additions & 6 deletions src/components/wrapper/wrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,6 @@ export default class Wrapper extends React.Component {
}
}

componentWillReceiveProps(props) {
if ( !this._supportedBrowser ) return;

this._updateList(props);
}

/**
* Fetch user information and available influence
*
Expand Down
7 changes: 1 addition & 6 deletions webpack.dist.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ export default env => Merge(CommonConfig(env), {
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
}
},

plugins: [
new OptimizeCssAssetsPlugin({
assetNameRegExp: /\.min\.css$/g,
Expand Down

0 comments on commit 99d0438

Please sign in to comment.