Support React v0.4 (while keeping BC with v0.3)
Fixes #1