hello,kuang,you did a good job to create a common react component,it's a good start for you.
now i give you some advices for your code.
one,i think you can put some functions into a single js file,make it independent for your component,maybe it can be used for your other component.
two,some react lifecycle methods are very useful,such as componentWillMount/componentDidMount,you push some function in the render(),so you can use those methods to do this things.
hey hey.
hello,kuang,you did a good job to create a common react component,it's a good start for you. now i give you some advices for your code. one,i think you can put some functions into a single js file,make it independent for your component,maybe it can be used for your other component. two,some react lifecycle methods are very useful,such as componentWillMount/componentDidMount,you push some function in the render(),so you can use those methods to do this things. hey hey.