refactor Components props extracting

This commit is contained in:
Horcrux
2017-02-03 19:43:25 +08:00
parent 9b62d500ce
commit 5bd9b40c17
35 changed files with 208 additions and 276 deletions
+1 -4
View File
@@ -1,7 +1,7 @@
import {Component, PropTypes} from 'react';
import {numberProp} from '../lib/props';
class Stop extends Component{
export default class extends Component{
static displayName = 'Stop';
static propTypes = {
stopColor: PropTypes.string,
@@ -17,6 +17,3 @@ class Stop extends Component{
return null;
}
}
export default Stop;