Skip to content

Commit 445a129

Browse files
docs: Update React auth quickstart (supabase#37530)
Update with recent framework changes
1 parent 9fda63d commit 445a129

File tree

1 file changed

+3
-4
lines changed
  • apps/docs/content/guides/auth/quickstarts

1 file changed

+3
-4
lines changed

apps/docs/content/guides/auth/quickstarts/react.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ hideToc: true
3737

3838
```bash name=Terminal
3939
npm create vite@latest my-app -- --template react
40-
4140
```
4241

4342
</StepHikeCompact.Code>
@@ -65,14 +64,14 @@ hideToc: true
6564
<StepHikeCompact.Step step={4}>
6665
<StepHikeCompact.Details title="Set up your login component">
6766
68-
In `App.js`, create a Supabase client using your [Project URL and public API (anon) key](https://supabase.com/dashboard/project/_/settings/api).
67+
In `App.jsx`, create a Supabase client using your [Project URL and public API (anon) key](https://supabase.com/dashboard/project/_/settings/api).
6968
7069
You can configure the Auth component to display whenever there is no session inside `supabase.auth.getSession()`
7170
7271
</StepHikeCompact.Details>
7372
<StepHikeCompact.Code>
7473
75-
```js name=src/App.js
74+
```jsx name=src/App.jsx
7675
import './index.css'
7776
import { useState, useEffect } from 'react'
7877
import { createClient } from '@supabase/supabase-js'
@@ -121,7 +120,7 @@ hideToc: true
121120
<StepHikeCompact.Code>
122121
123122
```bash name=Terminal
124-
npm start
123+
npm run dev
125124
```
126125
127126
</StepHikeCompact.Code>

0 commit comments

Comments
 (0)