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.

Viteを使ったReact環境構築【個人メモ】

Last updated at Posted at 2024-04-09

React環境構築

ターミナルを開いて、下記のコマンドを入力する
フォルダを作成したい場所に移動する
例:デスクトップ

ターミナル
% cd Desktop

次に下記のコマンドを入力。

ターミナル
% npm create vite@latest

プロジェクトの名前を聞かれるので、任意に決める

ターミナル
? Project name: › vite-project

作成したいプロジェクト種類を決める

ターミナル
? Select a framework: › - Use arrow-keys. Return to submit.
❯   Vanilla
    Vue
    React
    Preact
    Lit
    Svelte
    Solid
    Qwik
    Others
ターミナル
? Select a variant: › - Use arrow-keys. Return to submit.
    TypeScript
❯   TypeScript + SWC
    JavaScript
    JavaScript + SWC
    Remix ↗

あとは順番にコマンドを入力すれば、ローカルサーバー環境が構築できる

ターミナル
cd app
  npm install
  npm run dev
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?