Update for React 0.12 compatibility.
1.2.0