mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
16 lines
434 B
TypeScript
16 lines
434 B
TypeScript
import { motion } from 'motion/react'
|
|
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import './index.css'
|
|
import App from './App.tsx'
|
|
|
|
// motion v14 has motion.config for reducedMotion but TS types don't expose it
|
|
const motionWithConfig = motion as any
|
|
motionWithConfig.config.reducedMotion = 'user'
|
|
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
)
|