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 5 years have passed since last update.

reactの初期プロジェクト作成方法

0
Last updated at Posted at 2020-12-24

reactの初期プロジェクト作成方法について自分用に
まとまっているものが欲しく記事にしました

1 react のプロジェクト作成

まずは初期プロジェクトの作成

create-react-app my-app --template typescript

2 material-ui導入

現在使っているmaterial-uiの導入手順

yarn add @material-ui/core
yarn add @material-ui/icons

3 AWS amplify導入

初期設定(aws-amplify/cli)などの設定を除いた設定
通しの設定が必要な場合は下記を参照

AWS amplify Docs
 https://docs.amplify.aws/start/getting-started/setup/q/integration/react#create-a-new-react-app

amplify init
yarn add aws-amplify @aws-amplify/ui-react

ソースコードへ下記を追加

import Amplify from "aws-amplify";
import awsExports from "./aws-exports";
Amplify.configure(awsExports);

4 react router dom導入

ページ遷移に必要なreact router domの導入

yarn add react-router-dom
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?