- pnpm create vite
- pnpm add -D eslint-plugin-react-compiler@beta
- pnpm add react-compiler-runtime@beta babel-plugin-react-compiler@beta valtio
- Update eslint config to use plugin, and vite.config.ts to use babel plugin (skimming though this guide helped me).
- Create a proxy object, and use the proxy object using valtio's useProxy hook.
- Modifying the proxy object should be safe to do, but the compiler rules are too simple to realize that it is safe.