Skip to content

Commit

Permalink
Upgraded all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Mar 15, 2019
1 parent 29dc15d commit c77491a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 40 deletions.
6 changes: 0 additions & 6 deletions .babelrc

This file was deleted.

8 changes: 8 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-syntax-dynamic-import'
]
};
19 changes: 13 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,17 @@
},
"homepage": "https://github.com/marcnuri-demo/react-webpack-babel-sass-boilerplate#readme",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"@babel/core": "7.2.2",
"@babel/plugin-proposal-object-rest-spread": "7.3.2",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-transform-runtime": "7.2.0",
"@babel/preset-env": "7.3.1",
"@babel/preset-react": "7.0.0",
"@babel/runtime": "7.3.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-loader": "^8.0.5",
"css-loader": "^1.0.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
Expand All @@ -44,7 +51,7 @@
"webpack-dev-server": "^3.1.4"
},
"dependencies": {
"react": "^16.4.1",
"react-dom": "^16.4.1"
"react": "^16.8.1",
"react-dom": "^16.8.1"
}
}
18 changes: 7 additions & 11 deletions src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@ import FancyButton from "./fancy-button/fancy-button";

const content = 'Hello world!';

class App extends Component {
render() {
return (
<Fragment>
<div className={styles["resizeable-both"]}>{content}</div>
<Button label="Regular Button"/>
<FancyButton label="Fancy Button"/>
</Fragment>
);
}
}
const App = () => (
<Fragment>
<div className={styles["resizeable-both"]}>{content}</div>
<Button label="Regular Button"/>
<FancyButton label="Fancy Button"/>
</Fragment>
);

export default App;
13 changes: 4 additions & 9 deletions src/button/button.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, {Component} from 'react';
import React from 'react';
import styles from './button.scss'

class Button extends Component {

render() {
return (
<button className={styles.button}>{this.props.label}</button>
);
}
}
const Button = ({label}) => (
<button className={styles.button}>{label}</button>
);

export default Button;
12 changes: 4 additions & 8 deletions src/fancy-button/fancy-button.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import React, {Component} from 'react';
import React from 'react';
import styles from './fancy-button.scss'

class FancyButton extends Component {
render() {
return (
<button className={styles.button}>{this.props.label}</button>
);
}
}
const FancyButton = ({label}) => (
<button className={styles.button}>{label}</button>
);

export default FancyButton;

0 comments on commit c77491a

Please sign in to comment.