how to use react to consume a rest api code example Example: command to start api on react npm run api