Support React v0.4 (keeping BC with v0.3)