1234npm create vite@latest my-site -- --template react-ts cd my-site npm install unframer react@19 react-dom@19 npx unframer {projectId} --outDir ./src/framer
styles.css and compose your components:123456789101112131415// src/App.tsx import './framer/styles.css' import Header from './framer/header' import Hero from './framer/hero' import Footer from './framer/footer' export default function App() { return ( <div> <Header /> <Hero.Responsive /> <Footer /> </div> ) }
<StrictMode> from main.tsx to avoid Framer animation issues.1npm run dev
http://localhost:5173.12git init && git add . && git commit -m 'initial commit' gh repo create my-site --public --push --source .
12npm install -g vercel vercel
npx unframer {projectId} --outDir ./src/framernpx unframer before each build. Add it to your package.json:123456{ "scripts": { "prebuild": "npx unframer {projectId} --outDir ./src/framer", "build": "vite build" } }