标签: reactjs react-hooks framer-motion
嘿,我确实安装了 framer-motion 并像这样导入
import { motion } from "framer-motion" function App(){ return( <motion.div> Test </motion.div> ) } export default App;
我收到这个错误提示无效的钩子调用。 Hooks 只能在函数体内调用?
我也试过