Skip to content

Commit c622596

Browse files
committed
adding a new button component to replace the old component
1 parent 544381e commit c622596

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/components/button.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
const React = require('react');
4+
const ReactStyle = require('react-style');
5+
6+
export default class Button extends React.Component {
7+
render(){
8+
console.log('Button2 This>',this);
9+
const {
10+
children,
11+
onClick,
12+
} = this.props
13+
14+
return(
15+
<button onClick={onClick} className='mdl-button'>{children}</button>
16+
)
17+
}
18+
}

0 commit comments

Comments
 (0)