Vai al contenuto principale
ProdottiStrumenti desktopTASTECADVisualizzazione disegniTASTEFILESGestione fileTASTEFTPTrasferimento fileTASTESSHSpazio di lavoro remotoTASTEZIPCompressione ed estrazioneTASTEWINMGestione fileStrumenti per sviluppatoriTASTECODEAmbiente di sviluppo integrato per RustTASTESTUDIOAmbiente integrato di sviluppo e testTASTEETLIntegrazione dati (ETL)ServerTASTEREMOTEServer di desktop remotoTASTEGEOServer geospazialeTASTEMAILSpazio di lavoro emailInvestimentiTASTESTOCKApp desktop di trading automatico azionarioIniziaDownloadDocumentazioneAcquistaTutti i prodotti
Marketplace
Notizie
TecnologiaNotizieNotizie di sviluppo di oggiDocumentazioneLinguaggi di programmazioneRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartFramework frontend webNext.jsReactVue.js · NuxtSvelteKitAngularFramework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressFramework per app e desktopTauriFlutterReact NativeElectronAlgoritmiBasi degli algoritmiAlgoritmi fondamentaliAlgoritmi avanzatiAlgoritmi pratici
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrinaGuida alla community
CollaboraTrasferimento tecnicoRealizzazione del sito webRealizzazione di app desktopPipeline di rilascio e pagamentoPartner commercialeContatti
ServiziDesktop remotoPacchetti di installazione su misura
TASTEDEV
Prodotti

Strumenti desktop

TASTECADApri con leggerezza anche i disegni più complessiTASTEFILESSolo i file che servono, alla massima velocitàTASTEFTPLa via più ordinata per i tuoi fileTASTESSHUn legame più solido tra te e i tuoi serverTASTEZIPComprimi più veloce, estrai più sicuroTASTEWINMUn file manager a due pannelli pensato per la tastiera

Strumenti per sviluppatori

TASTECODEModifica, compila, esegui il debug e testa app Rust in un'unica finestraTASTESTUDIODalla modifica ai test remoti e alle correzioni IA approvateTASTEETLSposta i dati guardando i valori

Server

TASTEREMOTEUn desktop remoto che gira sul tuo serverTASTEGEOUn server geospaziale compatibile con GeoServer, ricostruito in RustTASTEMAILRiprendi il controllo della tua posta

Investimenti

TASTESTOCKTrading automatico azionario secondo le regole che decidi tu: quando e che cosa

Inizia

DownloadUltime versioni di ogni prodottoDocsCome usare ogni prodottoAcquistaAbbonamenti e licenze perpetueTutti i prodottiTutti i prodotti a colpo d’occhio
Tutti i prodotti
MarketplaceNotizie
Tecnologia

Notizie

Notizie di sviluppo di oggiAnnunci ufficiali su linguaggi, framework, GitHub e IADocumentazioneGuide a linguaggi, framework e algoritmi

Linguaggi di programmazione

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Framework

Framework frontend webNext.jsReactVue.js · NuxtSvelteKitAngular
Framework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
Framework per app e desktopTauriFlutterReact NativeElectron

Algoritmi

Basi degli algoritmiAnalisi della complessità · Ordinamento · Ricerca · Strutture dati di base · Alberi e heapAlgoritmi fondamentaliVisita dei grafi · Cammini minimi e alberi ricoprenti · Programmazione dinamica · Algoritmi greedy · Divide et impera · BacktrackingAlgoritmi avanzatiAlgoritmi sulle stringhe · Matematica e teoria dei numeri · Manipolazione dei bit · Alberi di segmenti · Union-FindAlgoritmi praticiStrategia per colloqui di programmazione · Cache LRU · Rate limiting · Hashing consistente
Tutta la documentazione di sviluppo
Community
ProgettiScopri sviluppatori e lavoriLog di sviluppoDecisioni e lezioni appresePromptIstruzioni riutilizzabiliProblemi degli strumenti di IAProblemi e alternative di Claude, Codex, GeminiVetrinaRisultati completatiGuida alla communityCome sviluppiamo in modo aperto
Collabora
Trasferimento tecnicoApp native in Rust ed eguiRealizzazione del sito web10 lingue, account, documentazione e downloadRealizzazione di app desktopRust ed egui, senza WebViewPipeline di rilascio e pagamentoFirma, MSI, deb, rpm, AppImage, hashPartner commercialeConsigliaci e ricevi il 30%ContattiSviluppo, partnership e investimenti
Servizi
Desktop remotoRaggiungi il tuo computer dal browserPacchetti di installazione su misuraSolo il necessario, impostazioni precaricate
Acquista
IT
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Accedi
Accedi
TASTEDEV

Dai piccoli strumenti a uno sviluppo migliore.

support@tastedev.netSostieni TASTEDEV
ProdottiGamma di prodottiAcquistaDocsDownloadMarketplaceAssistenza
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrina
NormeChi siamoInformativa sulla privacyTermini di servizioCondizioni di abbonamentoRimborsiLinee guida della community
AccountAccediRegistrati
Visitatori
Oggi
Ieri
Visualizzazioni totali
Società
GXSOFT
Rappresentante
CHOI YOUNG GU
Numero di registrazione
853-44-00368
Indirizzo
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefono
+82-10-4404-1523
E-mail
whitecalvin@tastedev.net
Responsabile privacy
CHOI YOUNG GU

© 2026 TASTEDEVLe informazioni sui prodotti si basano su fonti di sviluppo verificate.Rilasciato · in miglioramento

Documentazione di React
React
Getting Started with ReactProject StructureCore ConceptsData and StateTestingBuild and Deployment
Discussioni

Guida a React · 1/6

Getting Started with React

Per ora questo capitolo è disponibile solo in inglese.

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

Domande su questo capitolo?
Capitolo successivoProject 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 commenti

Commenti principaliPrima i più recenti

Accedi · Accedi per lasciare un commento.