nelsonkuang / react-cascading-address-selector

React级联地址选择器,纯前端实现
http://www.a4z.cn/pui/react-address.html
MIT License
7 stars 5 forks source link

some advice #1

Open nikenou opened 8 years ago

nikenou commented 8 years ago

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.

nelsonkuang commented 8 years ago

:+1:

nelsonkuang commented 8 years ago

break them all! :laughing: