Add require/logging to React example