0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

React (GraphQL + Tailwind CSS)の構成でアプリを作成しました【Pokemon Application】

Last updated at Posted at 2022-06-20

環境の準備

①ターミナルでreactアプリケーションを作成する。

$ npx create-react-app <プロジェクト名>
$ cd <プロジェクト名>
$ npm start

② 必要なパッケージをインストールする。

公式サイト:Tailwind CSS

$ npm install -D tailwindcss postcss autoprefixer
$ npx tailwindcss init -p
$ yarn add @apollo/react-hooks
$ yarn add apollo-boost
$ yarn add graphql
$ yarn add graphql-tag

コンポーネント・ファイル構成

 src
  ├─ components
  ├─ comtainer
  ├─ graphql
       ├── DetailCard.js
       ├── Header.js
       └── SummaryCard.js
  ├── App.js
  ├── index.css
  └── index.js
 ├── .env
 ├── craco.config.js
 ├── tailwind.config.js

参考サイト

Build a Pokemon App | React & GraphQL Tutorial | React Tutorial 2020

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?