Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Corrected: JSX expressions must have one parent element.

Rushabh Javeribe156a58df17
diff --git a/web/docs/guides/with-react.mdx b/web/docs/guides/with-react.mdx
index 7fe17b87a48..d59a74686e8 100644
--- a/web/docs/guides/with-react.mdx
+++ b/web/docs/guides/with-react.mdx
@@ -489,18 +489,20 @@ export default function Avatar({ url, size, onUpload }) {
style={{ height: size, width: size }}
/>
{uploading ? "Uploading..." : (
- <label className="button primary block" htmlFor="single">
- Upload an avatar
- </label>
- <VisuallyHidden>
- <input
- type="file"
- id="single"
- accept="image/*"
- onChange={uploadAvatar}
- disabled={uploading}
- />
- </VisuallyHidden>
+ <>
+ <label className="button primary block" htmlFor="single">
+ Upload an avatar
+ </label>
+ <VisuallyHidden>
+ <input
+ type="file"
+ id="single"
+ accept="image/*"
+ onChange={uploadAvatar}
+ disabled={uploading}
+ />
+ </VisuallyHidden>
+ </>
)}
</div>
)