Speed up React example

Fixes #3.