- 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
Use Node.js 24 LTS for this guide. The Basic React SDK requires Node.js 24 or newer.1
Create a new Vite React project
Terminal
2
Install Basic and Tailwind
Terminal
3
Configure Tailwind
Add Tailwind’s Vite plugin alongside the React plugin in Replace Tailwind 4 detects your source files automatically. You do not need a
vite.config.ts:vite.config.ts
src/index.css with:src/index.css
tailwind.config.js, PostCSS configuration, or an init command for this setup.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

