React Scheduler - Valtio Tutorial
This tutorial shows how to render React Scheduler in a Vite + React + TypeScript app and manage its state with Valtio. You will keep events, the current date, and the active view in a Valtio proxy store, then route user edits through the Scheduler's data.save callback.
By the end, you will have a Scheduler with:
- a reusable toolbar (view switcher, date navigation, undo/redo, read-only toggle)
- store-driven event CRUD (create/update/delete)
- snapshot-based undo/redo (events + config)
노트
The complete source code is available on GitHub.
Prerequisites
- React + TypeScript basics
- Vite basics
- Basic familiarity with Valtio
- Recommended: read about React Scheduler data binding and
data.savein React Scheduler docs: Binding Data
Creating a project
Create a Vite + React + TypeScript project:
npm create vite@latest scheduler-valtio-demo -- --template react-ts
cd scheduler-valtio-demo
Installing dependencies
This tutorial uses:
- Valtio for state management
- Material UI for the toolbar UI
Install the packages:
npm install valtio @mui/material @mui/icons-material @emotion/react @emotion/styled
If you use Yarn:
yarn add valtio @mui/material @mui/icons-material @emotion/react @emotion/styled