Step-by-step Guide
Step 1. Create React App
# NPM
npx create-react-app your-app-name
# Yarn
yarn create react-app your-app-name# NPM
cd your-app-name
npm start
# Yarn
cd your-app-name
yarn startStep 2. Fetch GraphQL (Relay 없이 fetch() 사용)
2.1. GitHub GraphQL Authentication
# your-app-name/.env.local
REACT_APP_GITHUB_AUTH_TOKEN=<TOKEN>2.2. A fetchGraphQL Helper
2.3. Fetching GraphQL From React
Step 3. When To Use Relay (Relay 사용해 데이터 가져오기)
Step 4. Adding Relay To Our Project
4.1. Configure Relay Compiler
4.2. Configure Relay Runtime
Step 5. Fetching a Query With Relay
Last updated