今天我使用 CRA 创建了一个 reactjs 起始模板:
npx create-react-app my-app --template redux
Run Code Online (Sandbox Code Playgroud)
这在我的项目中创建了两个文件:package.json和yarn.lock.
我很困惑为什么它在我cd进入项目后工作并运行,yarn start即使我没有用yarn create react-app my-app.
我有两个问题:
npx create-react-app my-app --template redux 和yarn create react-app my-app --template redux 考虑到它们具有相同的效果。我想使用 reactJs 的主题库之一。我的要求是:
在这里没有找到任何解决方案: https: //nextjs.org/docs/app/api-reference/file-conventions/route。