mediumEngineering Practices#79

Flipper network inspector

Prompt

Network inspection tooling has churned: Flipper is deprecated, and React Native DevTools now ships a Network panel. But a logging fetch wrapper is still the portable answer — it works in every environment and feeds your own telemetry.

Write fetchWithLogging(url, options, fetchImpl = fetch) that logs the method and URL before the request and the response status after, then returns the response. Inject fetchImpl so it's testable.

Hints

Solution

Your Code

10 min

Tests

Click Run to test your code