Keep compatibility with React 0.12.*
Merge pull request #5 from banyan/react-0.12

Keep compatibility with React 0.12.*