本文へスキップ
製品デスクトップツールTASTECAD図面の確認TASTEFILESファイル管理TASTEFTPファイル転送TASTESSHリモートワークスペースTASTEZIP圧縮と展開TASTEWINMファイル管理開発ツールTASTECODERust 統合開発環境TASTESTUDIO統合開発・テスト環境TASTEETLデータ統合(ETL)サーバーTASTEREMOTEリモートデスクトップサーバーTASTEGEO空間情報サーバーTASTEMAILメールワークスペース投資TASTESTOCK株式自動売買デスクトップアプリはじめるダウンロードドキュメント購入すべての製品
マーケットプレイス
ニュース
技術ニュース今日の開発ニュース開発ドキュメントプログラミング言語RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWebフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngularサーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Expressアプリ・デスクトップ フレームワークTauriFlutterReact NativeElectronアルゴリズムアルゴリズムの基礎主要アルゴリズム発展アルゴリズム実務のアルゴリズム
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケースコミュニティガイド
協業技術移転ウェブサイト構築デスクトップアプリ構築リリース・決済パイプライン販売パートナーお問い合わせ
サービスリモートデスクトップインストールパッケージのカスタマイズ
TASTEDEV
製品

デスクトップツール

TASTECAD複雑な図面を、軽やかにひらくTASTEFILES必要なファイルだけを、最速でTASTEFTPファイルが行き交う、いちばん端正な道TASTESSHサーバーとあなたを、より確かにつなぐTASTEZIPより速くまとめ、より安全にひらくTASTEWINM2つの画面で整理する、キーボード中心のファイルマネージャー

開発ツール

TASTECODERust アプリの編集・ビルド・デバッグ・テストまでひとつのウィンドウでTASTESTUDIO編集からリモートテスト、承認した AI 修正までTASTEETL値を見ながら、データを運ぶ

サーバー

TASTEREMOTE自社サーバーで運用するリモートデスクトップTASTEGEOGeoServer 互換の空間情報サーバーを Rust で作り直しますTASTEMAILメールの主導権を、もう一度自分の手に

投資

TASTESTOCKいつ・何を。自分で決めたルールどおりに動く株式自動売買

はじめる

ダウンロード全製品の最新版ドキュメント各製品の使い方購入サブスクリプション・永久ライセンスすべての製品全製品を一覧で
すべての製品
マーケットプレイスニュース
技術

ニュース

今日の開発ニュース言語・フレームワーク・GitHub・AI の公式発表開発ドキュメント言語・フレームワーク・アルゴリズムのガイド

プログラミング言語

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

フレームワーク

Webフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngular
サーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
アプリ・デスクトップ フレームワークTauriFlutterReact NativeElectron

アルゴリズム

アルゴリズムの基礎計算量解析 · ソート · 探索 · 基本データ構造 · 木構造とヒープ主要アルゴリズムグラフ探索 · 最短経路と最小全域木 · 動的計画法 · 貪欲法 · 分割統治法 · バックトラッキング発展アルゴリズム文字列アルゴリズム · 数学と整数論 · ビット演算 · セグメント木 · Union-Find実務のアルゴリズムコーディング面接対策 · LRUキャッシュ · レート制限 · コンシステントハッシュ法
開発ドキュメントをすべて見る
コミュニティ
プロジェクトビルダーと作品を探す開発ログ決定と試行錯誤プロンプト再利用できる指示AIツールの問題Claude・Codex・Gemini の問題と回避策ショーケース完成した成果コミュニティガイドオープンにつくる方法
協業
技術移転Rust・egui でネイティブアプリを作るウェブサイト構築10言語、アカウント、ドキュメントとダウンロードデスクトップアプリ構築Rust・egui、WebView なしリリース・決済パイプライン署名・MSI・deb・rpm・AppImage・ハッシュ販売パートナー紹介して決済額の30%お問い合わせ構築・提携・投資のご相談
サービス
リモートデスクトップブラウザから自分のパソコンへインストールパッケージのカスタマイズ必要な機能だけ、設定は事前に
購入
JA
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
ログイン
ログイン
TASTEDEV

小さなツールから、より良い開発へ。

support@tastedev.netTASTEDEVを支援
製品製品ラインナップ購入ドキュメントダウンロードマーケットプレイスサポート
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケース
ポリシー会社概要プライバシーポリシー利用規約サブスクリプション規約返金ポリシーコミュニティガイドライン
アカウントログイン新規登録
訪問者
今日
昨日
累計閲覧
商号
GXSOFT
代表者
CHOI YOUNG GU
事業者登録番号
853-44-00368
所在地
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
電話
+82-10-4404-1523
メール
whitecalvin@tastedev.net
個人情報保護責任者
CHOI YOUNG GU

© 2026 TASTEDEV製品情報は検証済みの開発ソースに基づいています。リリース・改善中

React ドキュメント
React
Getting Started with ReactProject StructureCore ConceptsData and StateTestingBuild and Deployment
ディスカッション

React ガイド · 1/6

Getting Started with React

この章は現在、英語でのみ提供しています。

This chapter sets up the tools you need for React development, creates a first project with Vite and runs it on the dev server. Along the way it covers a sensible editor setup.

Prerequisite: Node.js

React itself is a library that runs in the browser, but the tools that create and build a project all run on Node.js. Install the LTS (long-term support) release from nodejs.org, then open a new terminal and check the versions.

node --version
npm --version

Installing Node.js also installs the npm package manager. pnpm, Yarn or Bun work just as well, but this guide uses npm commands throughout.

Two ways to start a project

The official React docs recommend starting new apps with a framework such as Next.js, React Router (framework mode) or Expo (for mobile), because frameworks bring routing, data loading, server rendering and code splitting out of the box. When you want to learn React's core ideas, or build a single-page app that needs no server of its own, starting with the Vite build tool keeps the setup small and easy to understand.

OptionGood fit for
ViteLearning, client-only SPAs, dashboards, frontends for an existing backend
Next.jsServer rendering, SEO-sensitive sites, full-stack apps
React Router (framework mode)Web apps centered on routing and data loading
ExpoMobile apps built with React Native

This guide uses a Vite project so it can focus on React itself. Everything you learn about components, hooks and state carries over unchanged to any framework.

Create a project with Vite

npm create vite downloads and runs Vite's project scaffolding tool. Passing --template react-ts creates a React template that uses TypeScript; choose the react template for plain JavaScript.

npm create vite@latest my-app -- --template react-ts
cd my-app
npm install
npm run dev

With npm, the extra -- makes sure the template option reaches the scaffolding tool rather than npm itself. If you leave the template out, the tool asks you to pick a framework and variant interactively. Other package managers use these forms:

pnpm create vite my-app --template react-ts
yarn create vite my-app --template react-ts
bun create vite my-app --template react-ts

The dev server and instant updates

この章について質問がありますか?
次の章Project Structure

npm run dev starts the Vite dev server and prints an address such as http://localhost:5173. Keep that page open in your browser, edit src/App.tsx and save: the change shows up immediately without a full reload. Thanks to Fast Refresh, provided by Vite's React plugin, component state is usually preserved as well.

Try replacing the contents of src/App.tsx with this:

function Greeting({ name }: { name: string }) {
  return <p>Hello, {name}!</p>;
}

export default function App() {
  return (
    <main>
      <h1>My first React app</h1>
      <Greeting name="React" />
      <Greeting name="Vite" />
    </main>
  );
}

Both Greeting and App are functions that return JSX, in other words components. Component names must start with a capital letter so React can tell them apart from HTML tags. To change the port, open the browser automatically or reach the server from a phone on the same network, pass options through:

npm run dev -- --port 3000 --open
npm run dev -- --host

Editor setup

Visual Studio Code supports TypeScript and JSX out of the box, so autocomplete, inline type errors and rename refactoring work immediately. A few additions make life easier:

  • ESLint extension: reads the eslint.config.js that ships with the Vite template and flags problems such as Rules of Hooks violations right in the editor.
  • Prettier extension: formats code on save. Installing it in the project too (npm install -D prettier) keeps everyone on the same version.
  • React Developer Tools: a browser extension for Chrome, Firefox and Edge that shows the component tree with props and state, and profiles rendering.

A project-level .vscode/settings.json can run formatting and ESLint auto-fixes on every save:

{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  }
}

During development you may notice components rendering twice or effects running twice. That is <StrictMode> in src/main.tsx doing extra work on purpose, only in development, to surface bugs such as missing cleanup early. It never happens in a production build.

Summary

  • React tooling runs on Node.js, so install an LTS release first.
  • The official docs recommend a framework for new apps, but Vite is simpler for learning and client-only apps.
  • Create a project with npm create vite@latest my-app -- --template react-ts and run it with npm run dev.
  • Fast Refresh updates the page as you save; StrictMode's double invocation happens only in development.
  • ESLint and Prettier in VS Code plus React Developer Tools in the browser make a solid setup.

コメント 0件

人気のコメント順新しい順

ログイン · ログインするとコメントできます。