Support React v0.4 (while preserving BC)

Fixes #6