This repository was archived by the owner on Oct 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 52
52
},
53
53
"devDependencies" : {
54
54
"babel-cli" : " ^6.26.0" ,
55
- "babel-preset-airbnb" : " ^2.4.0 " ,
55
+ "babel-preset-airbnb" : " ^2.5.2 " ,
56
56
"chai" : " ^4.1.2" ,
57
57
"enzyme" : " ^3.3.0" ,
58
58
"enzyme-adapter-react-helper" : " ^1.2.3" ,
59
59
"eslint" : " ^4.19.1" ,
60
- "eslint-config-airbnb" : " ^16.1 .0" ,
61
- "eslint-plugin-import" : " ^2.11 .0" ,
62
- "eslint-plugin-jsx-a11y" : " ^6.0.3 " ,
63
- "eslint-plugin-react" : " ^7.7 .0" ,
64
- "hypernova" : " ^2.2.5 " ,
60
+ "eslint-config-airbnb" : " ^17.0 .0" ,
61
+ "eslint-plugin-import" : " ^2.13 .0" ,
62
+ "eslint-plugin-jsx-a11y" : " ^6.1.1 " ,
63
+ "eslint-plugin-react" : " ^7.10 .0" ,
64
+ "hypernova" : " ^2.2.6 " ,
65
65
"istanbul" : " ^0.4.5" ,
66
66
"jsdom" : " ^9.12.0" ,
67
67
"mocha" : " ^4.1.0" ,
68
- "prop-types" : " ^15.6.1 " ,
68
+ "prop-types" : " ^15.6.2 " ,
69
69
"react" : " ^0.14 || ^15 || ^16" ,
70
70
"react-dom" : " ^0.14 || ^15 || ^16" ,
71
71
"rimraf" : " ^2.6.2" ,
72
- "sinon" : " ^5.0 .1" ,
73
- "sinon-sandbox" : " ^1 .0.2 "
72
+ "sinon" : " ^5.1 .1" ,
73
+ "sinon-sandbox" : " ^2 .0.0 "
74
74
},
75
75
"engines" : {
76
76
"node" : " >= 4.0"
Original file line number Diff line number Diff line change 1
1
const React = require ( 'react' ) ;
2
2
const PropTypes = require ( 'prop-types' ) ;
3
3
4
- function ExampleReactComponent ( props ) {
5
- const name = [ 'Hello' , props . name ] ;
6
- return React . createElement ( 'div' , { id : 'example' } , name . join ( ' ' ) ) ;
4
+ function ExampleReactComponent ( { name } ) {
5
+ const hi = [ 'Hello' , name ] ;
6
+ return React . createElement ( 'div' , { id : 'example' } , hi . join ( ' ' ) ) ;
7
7
}
8
8
9
9
ExampleReactComponent . propTypes = {
You can’t perform that action at this time.
0 commit comments