Speed up React example

Fixes #3.
Merge pull request #4 from spicyj/react-faster

Speed up React example