Upgraded to React 0.12

Fixes #3384.
Cleanup: use strict