Skip to content

Glossary: React Basics

fetch

Also written: fetch API, response.ok

The browser function that makes HTTP requests. In React it's called inside an effect or event handler, and the code checks `response.ok` and throws on failure.

Where the book teaches it

Related terms

POSTHTTP status codesuseEffect