React Cookies

创建及运行React应用

1
npx create-react-app my-app

如需要带梨,可添加

1
proxychains4 npx create-react-app hi-graphql-react-app

Starts the development server.

1
yarn start

Bundles the app into static files for production.

1
yarn build

Starts the test runner.

1
yarn test

Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!

1
yarn eject

升级

1
npm install react-scripts@latest

添加 graphql 依赖

1
npm install @apollo/client graphql