added another example for react
cleaning the example up a bit