create-react-app + apollo client + absinth socket
create-react-app xxxxx
yarn add --dev
#基础包
react-app-rewired
#可以用@修饰符
babel-plugin-transform-decorators-legacy
#可以按需引入ant组件
babel-plugin-import
#less module
react-app-rewire-less
添加一个config-overrides文件夹,内容参考代码
yarn add
apollo-cache-inmemory
apollo-client
apollo-link-state
apollo-link-context
apollo-link-error
apollo-link-http
@absinthe/socket
@absinthe/socket-apollo-link
graphql-tag
antd
styled-components
styled-normalize
styled-components-breakpoint
react-helmet