- Set up a new React project with Basic
- Create a simple To-Do UI
- Connect to a Basic project and set up your schema
- Add sign in and sign out functionality
- Hook up to Basic DB so that your users can save their to-dos across their devices
Create a new React project
1
Create a new Vite React project
Terminal
2
Install Basic and Tailwind
Terminal
3
Configure Tailwind
Update Replace
tailwind.config.js:tailwind.config.js
src/index.css with:src/index.css
4
Start your dev server
Terminal
http://localhost:5173 to see your app running.Create a simple To-Do UI
1
Create the basic layout
Replace the code in your
src/App.tsx file:src/App.tsx
Connect to a Basic project
1
Create a Basic account
Go to admin.basic.tech and create a free account. Then create a new project and copy your Project ID.
2
Create basic.config.ts
Create a
basic.config.ts file in your project root:basic.config.ts
3
Add BasicProvider to main.tsx
Update
src/main.tsx:src/main.tsx
Add sign in and sign out functionality
1
Add auth buttons to App.tsx
Update
src/App.tsx:src/App.tsx
Hook up to Basic DB
1
Add task creation
Update
src/App.tsx to add state and the addTask function:src/App.tsx
2
Display and delete tasks
Add
useQuery to display tasks and a delete function:src/App.tsx
Next steps
- Database Methods - Learn about all available database operations
- React Hooks - Explore all available hooks
- Schema Guide - Learn how to customize your schema

