updated react
coding style and removed unused code
coding style
react 0.12 methods