没有合适的资源?快使用搜索试试~ 我知道了~
react-relay-example:示例项目如何使用React,Relay和TypeScript
共47个文件
ts:17个
tsx:15个
json:3个
需积分: 10 0 下载量 115 浏览量
2021-05-14
17:16:38
上传
评论
收藏 236KB ZIP 举报
温馨提示
React+中继示例 在React + Relay中实现的带有作者的引文清单。 您可以使用或作为后端。 如何运行项目 安装 yarn install # or if you use npm npm install 配置 创建src/config.ts或重命名src/config.example.ts并确保它包含服务器的graphql端点URL: export default { graphql : 'http://localhost:3013/graphql' , } ; 下载GraphQL模式 为此,您需要安装 。 graphql get-schema --project quotes -e default 使用graphql / relay构建/转换组件 yarn run relay 开始项目 yarn start 旧版本 该版本正在使用较旧的Relay版本10.0.1 :
资源推荐
资源详情
资源评论
收起资源包目录
react-relay-example-master.zip (47个子文件)
react-relay-example-master
.dockerignore 34B
.github
workflows
containerize.yml 947B
public
manifest.json 306B
index.html 2KB
favicon.ico 4KB
schema.graphql 3KB
yarn.lock 522KB
src
config.example.ts 70B
pages
Home.tsx 2KB
Authors.tsx 587B
home
QuotesList.tsx 779B
HomeContainer.tsx 2KB
QuoteCard.tsx 856B
__generated__
HomeContainerQuery.graphql.ts 7KB
HomeContainerQuotesQuery.graphql.ts 7KB
QuotesList_quotes.graphql.ts 1KB
HomeContainer_quotes.graphql.ts 4KB
QuoteCard_quote.graphql.ts 2KB
authors
AuthorsContainer.tsx 2KB
Filter.tsx 3KB
AuthorRow.tsx 546B
AuthorsTable.tsx 944B
__generated__
AuthorsContainer_authors.graphql.ts 5KB
AuthorsContainerQuery.graphql.ts 8KB
AuthorsContainerAuthorsQuery.graphql.ts 8KB
AuthorRow_author.graphql.ts 1KB
AuthorsTable_authors.graphql.ts 1KB
index.tsx 403B
components
Menu.tsx 556B
ForkMe.tsx 440B
Footer.tsx 666B
SEO.tsx 424B
environment.ts 714B
types
Quote.d.ts 108B
babel-plugin-relay.d.ts 85B
Author.d.ts 116B
App.tsx 810B
react-app-env.d.ts 40B
serviceWorker.ts 5KB
Dockerfile 508B
.graphqlconfig 345B
tsconfig.json 535B
LICENSE 1KB
README.md 1KB
.gitignore 326B
nginx
nginx.conf 259B
package.json 1KB
共 47 条
- 1
资源评论
谁家扁舟子
- 粉丝: 27
- 资源: 4680
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功