Skip to content

Mantak/cra_antd_apollo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

0

create-react-app + apollo client + absinth socket

1

create-react-app xxxxx

2

yarn add --dev

  #基础包
  react-app-rewired
  #可以用@修饰符
  babel-plugin-transform-decorators-legacy
  #可以按需引入ant组件
  babel-plugin-import
  #less module
  react-app-rewire-less

3

添加一个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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published