react模版app里面的eject步骤

前端之家收集整理的这篇文章主要介绍了react模版app里面的eject步骤前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
npm install -g create-react-app
create-react-app my-app
cd my-app
git init
git add .
git commit -m "xxx"

在执行npm run eject命令之前,需要执行git init等操作,否则run eject会报一些莫名其妙的错误(和git相关)。

猜你在找的React相关文章