Skip to content

docs: update react quickstart example #2085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: clean up example project
  • Loading branch information
christiannwamba authored and vinckr committed May 2, 2025
commit 1ce232aac6f72aed1a3742f7748cc3026c60a309
9 changes: 0 additions & 9 deletions code-examples/protect-page-login/react/src/App.test.tsx

This file was deleted.

11 changes: 2 additions & 9 deletions code-examples/protect-page-login/react/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
// import App from './App.tsx'
import AppWithAPI from './AppWithApi.tsx'
import './assets/main.css'

// Comment/uncomment to switch between components
// ReactDOM.createRoot(document.getElementById('root')!).render(
// <React.StrictMode>
// <App msg="Ory + React Example" />
// </React.StrictMode>,
// )

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<AppWithAPI msg="Ory + React + API Example" />
</React.StrictMode>,
)
)
18 changes: 0 additions & 18 deletions code-examples/protect-page-login/react/src/reportWebVitals.ts

This file was deleted.

8 changes: 0 additions & 8 deletions code-examples/protect-page-login/react/src/setupTests.ts

This file was deleted.