docs: improve React quickstart with error handling and fix Docker capitalization (#45320)

## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Docs update

## What is the current behavior?

- The React quickstart example does not handle errors when fetching
data.
- The local development guide uses inconsistent capitalization for
"docker".

## What is the new behavior?

- Adds basic error handling (`error` check) in the React quickstart
example to improve reliability.
- Fixes capitalization from "docker" → "Docker" for consistency with
official naming.

## Additional context

These are small improvements to enhance clarity and developer experience
in the docs.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Enhanced React quickstart guide with error handling for database
queries to prevent invalid data processing
  * Corrected capitalization in local development guide

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Akash Santra authored and GitHub committed 2026-05-07 08:54:18 +02:00
1 parent 08efb963f9
commit 34c5a9aa7a
2 files changed
+8 -2

No files matched your search

@@ -102,7 +102,13 @@ hideToc: true
}, []);
async function getInstruments() {
const { data } = await supabase.from("instruments").select();
const { data, error } = await supabase.from("instruments").select();
if (error) {
console.error(error);
return;
}
setInstruments(data);
}
@@ -116,7 +116,7 @@ As a prerequisite, you must install a container runtime compatible with Docker A
<Admonition type="caution">
If your local development machine is connected to an untrusted public network, you should create a separate docker network and bind to 127.0.0.1 before starting the local development stack. This restricts network access to only your localhost machine.
If your local development machine is connected to an untrusted public network, you should create a separate Docker network and bind to 127.0.0.1 before starting the local development stack. This restricts network access to only your localhost machine.
```sh
docker network create -o 'com.docker.network.bridge.host_binding_ipv4=127.0.0.1' local-network