React app using dependency injection