|
1 | 1 | ---
|
2 | 2 | id: create-a-new-react-app
|
3 |
| -title: Create a New React App |
| 3 | +title: Új React alkalmazás készítése |
4 | 4 | permalink: docs/create-a-new-react-app.html
|
5 | 5 | redirect_from:
|
6 | 6 | - "docs/add-react-to-a-new-app.html"
|
7 | 7 | prev: add-react-to-a-website.html
|
8 | 8 | next: cdn-links.html
|
9 | 9 | ---
|
10 | 10 |
|
11 |
| -Use an integrated toolchain for the best user and developer experience. |
| 11 | +A legjobb felhasználói és fejlesztői élmény érdekében használj egy integrált eszközláncot. |
12 | 12 |
|
13 |
| -This page describes a few popular React toolchains which help with tasks like: |
| 13 | +Ez az oldal néhány népszerű React eszközláncot ír le, amik az alábbi feladatokban segítenek: |
14 | 14 |
|
15 |
| -* Scaling to many files and components. |
16 |
| -* Using third-party libraries from npm. |
17 |
| -* Detecting common mistakes early. |
18 |
| -* Live-editing CSS and JS in development. |
19 |
| -* Optimizing the output for production. |
| 15 | +* Sok fájl és komponens kezelése. |
| 16 | +* Külső npm könyvtárak használata. |
| 17 | +* Gyakori hibák korai felfedése. |
| 18 | +* CSS és JS élő szerkesztése fejlesztői módban. |
| 19 | +* A kimenet optimalizálása a végstádiumhoz. |
20 | 20 |
|
21 |
| -The toolchains recommended on this page **don't require configuration to get started**. |
| 21 | +Az ezen az oldalon ajánlott eszközláncok **nem igényelnek konfigurációt a kezdéshez**. |
22 | 22 |
|
23 |
| -## You Might Not Need a Toolchain {#you-might-not-need-a-toolchain} |
| 23 | +## Lehet, hogy nincs szükséged eszközláncokra {#you-might-not-need-a-toolchain} |
24 | 24 |
|
25 |
| -If you don't experience the problems described above or don't feel comfortable using JavaScript tools yet, consider [adding React as a plain `<script>` tag on an HTML page](/docs/add-react-to-a-website.html), optionally [with JSX](/docs/add-react-to-a-website.html#optional-try-react-with-jsx). |
| 25 | +Ha a fent említett problémák egyikét sem tapasztalod, vagy még nem mozogsz otthon a JavaScript eszközök közt, vedd fontolóra a [React hozzáadását egy HTML oldalhoz egy egyszerű `<script>` címkével](/docs/add-react-to-a-website.html), vagy adott esetben [JSX-el együtt](/docs/add-react-to-a-website.html#optional-try-react-with-jsx). |
26 | 26 |
|
27 |
| -This is also **the easiest way to integrate React into an existing website.** You can always add a larger toolchain if you find it helpful! |
| 27 | +Ez egyben a **legegyszerűbb módja a React egy meglévő oldalba való integrálásának.** Ha hasznosnak találod, később bármikor hozzáadhatsz egy nagyobb eszközláncot! |
28 | 28 |
|
29 |
| -## Recommended Toolchains {#recommended-toolchains} |
| 29 | +## Ajánlott eszközláncok {#recommended-toolchains} |
30 | 30 |
|
31 |
| -The React team primarily recommends these solutions: |
| 31 | +A React csapat főként ezeket a megoldásokat ajánlja: |
| 32 | + |
| 33 | +- Ha **tanulod a Reactet** vagy **egy [single-page](/docs/glossary.html#single-page-application) alkalmazást készítesz,** használd a [Create React App](#create-react-app)-t. |
| 34 | +- Ha egy **Node.js-sel szerveroldalon renderelt weblapot** építesz, próbáld ki a [Next.js](#nextjs)-t. |
| 35 | +- Ha egy **statikus, tartalom-orientált weblapot** építesz, próbáld ki a [Gatsby](#gatsby)-t. |
| 36 | +- Ha egy **komponens könyvtárat** építesz, vagy **egy meglévő kódbázissal integrálsz**, próbálj ki egy [kissé rugalmasabb eszközláncot](#more-flexible-toolchains). |
32 | 37 |
|
33 |
| -- If you're **learning React** or **creating a new [single-page](/docs/glossary.html#single-page-application) app,** use [Create React App](#create-react-app). |
34 |
| -- If you're building a **server-rendered website with Node.js,** try [Next.js](#nextjs). |
35 |
| -- If you're building a **static content-oriented website,** try [Gatsby](#gatsby). |
36 |
| -- If you're building a **component library** or **integrating with an existing codebase**, try [More Flexible Toolchains](#more-flexible-toolchains). |
37 | 38 |
|
38 | 39 | ### Create React App {#create-react-app}
|
39 | 40 |
|
40 |
| -[Create React App](https://github.com/facebookincubator/create-react-app) is a comfortable environment for **learning React**, and is the best way to start building **a new [single-page](/docs/glossary.html#single-page-application) application** in React. |
| 41 | +A [Create React App](https://github.com/facebookincubator/create-react-app) egy komfortos környezet a **React tanulásához** és a legjobb módja **egy új [single-page](/docs/glossary.html#single-page-application) alkalmazás** készítésére Reactben. |
41 | 42 |
|
42 |
| -It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production. You’ll need to have Node >= 8.10 and npm >= 5.6 on your machine. To create a project, run: |
| 43 | +Úgy állítja fel a fejlesztői környezeted, hogy használni tudd a legújabb JavaScript funkciókat, egy kellemes fejlesztői élményt biztosít és optimalizálja az alkalmazásod a végstádiumban. A gépednek rendelkeznie kell Node 8.10 vagy annál újabb, és npm 5.6 vagy annál újabb verzióival. Egy projekt készítéséhez futtasd ezt: |
43 | 44 |
|
44 | 45 | ```bash
|
45 | 46 | npx create-react-app my-app
|
46 | 47 | cd my-app
|
47 | 48 | npm start
|
48 | 49 | ```
|
49 | 50 |
|
50 |
| ->Note |
| 51 | +>Megjegyzés |
51 | 52 | >
|
52 |
| ->`npx` on the first line is not a typo -- it's a [package runner tool that comes with npm 5.2+](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b). |
| 53 | +>Az `npx` az első sorban nem elírás -- ez egy [csomag futtató eszköz ami az npm 5.2 óta elérhető](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b). |
53 | 54 |
|
54 |
| -Create React App doesn't handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. Under the hood, it uses [Babel](https://babeljs.io/) and [webpack](https://webpack.js.org/), but you don't need to know anything about them. |
| 55 | +A Create React App nem kezel szerveroldali logikát vagy adatbázisokat; csak egy frontend építő futószalagot készít, szóval bármilyen backendet használhatsz. A motorháztető alatt [Babel](https://babeljs.io/)-t és [webpack](https://webpack.js.org/)-et használ, de semmit nem kell tudnod róluk. |
55 | 56 |
|
56 |
| -When you're ready to deploy to production, running `npm run build` will create an optimized build of your app in the `build` folder. You can learn more about Create React App [from its README](https://github.com/facebookincubator/create-react-app#create-react-app--) and the [User Guide](https://facebook.github.io/create-react-app/). |
| 57 | +Amikor készen állsz a publikálásra, az `npm run build` futtatása elkészíti az alkalmazásod egy optimalizált változatát a `build` mappában. A Create React Appről többet tanulhatsz [annak README fájljából](https://github.com/facebookincubator/create-react-app#create-react-app--) és a [felhasználói útmutatóból](https://facebook.github.io/create-react-app/). |
57 | 58 |
|
58 | 59 | ### Next.js {#nextjs}
|
59 | 60 |
|
60 |
| -[Next.js](https://nextjs.org/) is a popular and lightweight framework for **static and server‑rendered applications** built with React. It includes **styling and routing solutions** out of the box, and assumes that you're using [Node.js](https://nodejs.org/) as the server environment. |
| 61 | +A [Next.js](https://nextjs.org/) egy népszerű és könnyűsúlyú React keretrendszer **statikus és szerver-renderelt alkalmazások** építéséhez. Alapból magában foglal **stílus és útválasztó (routing) megoldásokat** és feltételezi, hogy [Node.js](https://nodejs.org/)-t használsz a szerver környezetben. |
61 | 62 |
|
62 |
| -Learn Next.js from [its official guide](https://nextjs.org/learn/). |
| 63 | +Tanuld meg a Next.js használatát [a hivatalos útmutatóból](https://nextjs.org/learn/). |
63 | 64 |
|
64 | 65 | ### Gatsby {#gatsby}
|
65 | 66 |
|
66 |
| -[Gatsby](https://www.gatsbyjs.org/) is the best way to create **static websites** with React. It lets you use React components, but outputs pre-rendered HTML and CSS to guarantee the fastest load time. |
| 67 | +A [Gatsby](https://www.gatsbyjs.org/) a legjobb módja **statikus weblapok** készítésének Reacttel. Lehetővé teszi React komponensek használatát, de előrenderelt HTML-t és CSS-t eredményez, ami garantálja a gyors betöltést. |
67 | 68 |
|
68 |
| -Learn Gatsby from [its official guide](https://www.gatsbyjs.org/docs/) and a [gallery of starter kits](https://www.gatsbyjs.org/docs/gatsby-starters/). |
| 69 | +Tanuld meg a Gatsby használatát [a hivatalos útmutatóból](https://www.gatsbyjs.org/docs/) és [kezdő csomagok egy galériájából](https://www.gatsbyjs.org/docs/gatsby-starters/). |
69 | 70 |
|
70 |
| -### More Flexible Toolchains {#more-flexible-toolchains} |
| 71 | +### Kissé rugalmasabb eszközláncok {#more-flexible-toolchains} |
71 | 72 |
|
72 |
| -The following toolchains offer more flexibility and choice. We recommend them to more experienced users: |
| 73 | +A következő eszközláncok több rugalmasságot és lehetőséget biztosítanak. Tapasztaltabb felhasználóknak ajánljuk: |
73 | 74 |
|
74 |
| -- **[Neutrino](https://neutrinojs.org/)** combines the power of [webpack](https://webpack.js.org/) with the simplicity of presets, and includes a preset for [React apps](https://neutrinojs.org/packages/react/) and [React components](https://neutrinojs.org/packages/react-components/). |
| 75 | +- A **[Neutrino](https://neutrinojs.org/)** kombinálja a [webpack](https://webpack.js.org/) erejét a presetek egyszerűségével, és tartalmaz egy presetet [React alkalmazásokhoz](https://neutrinojs.org/packages/react/) és [React komponensekhez](https://neutrinojs.org/packages/react-components/). |
75 | 76 |
|
76 |
| -- **[Parcel](https://parceljs.org/)** is a fast, zero configuration web application bundler that [works with React](https://parceljs.org/recipes.html#react). |
| 77 | +- A **[Parcel](https://parceljs.org/)** egy gyors, konfigurálást nem igénylő webalkalmazás csomagoló ami [Reacttel is működik](https://parceljs.org/recipes.html#react). |
77 | 78 |
|
78 |
| -- **[Razzle](https://github.com/jaredpalmer/razzle)** is a server-rendering framework that doesn't require any configuration, but offers more flexibility than Next.js. |
| 79 | +- A **[Razzle](https://github.com/jaredpalmer/razzle)** egy konfigurálást nem igénylő szerveroldali renderelő keretrendszer, de több rugalmasságot biztosít, mint a Next.js. |
79 | 80 |
|
80 |
| -## Creating a Toolchain from Scratch {#creating-a-toolchain-from-scratch} |
| 81 | +## Eszközlánc készítése a semmiből {#creating-a-toolchain-from-scratch} |
81 | 82 |
|
82 |
| -A JavaScript build toolchain typically consists of: |
| 83 | +Egy JavaScript eszközlánc tipikusan ezekből áll: |
83 | 84 |
|
84 |
| -* A **package manager**, such as [Yarn](https://yarnpkg.com/) or [npm](https://www.npmjs.com/). It lets you take advantage of a vast ecosystem of third-party packages, and easily install or update them. |
| 85 | +* Egy **csomagkezelő**, mint a [Yarn](https://yarnpkg.com/) vagy az [npm](https://www.npmjs.com/). Ez lehetővé teszi a harmadik féltől származó csomagok hatalmas ökoszisztémájának kihasználását, valamint egyszerű telepítését vagy frissítését. |
85 | 86 |
|
86 |
| -* A **bundler**, such as [webpack](https://webpack.js.org/) or [Parcel](https://parceljs.org/). It lets you write modular code and bundle it together into small packages to optimize load time. |
| 87 | +* Egy **csomagoló**, mint a [webpack](https://webpack.js.org/) vagy a [Parcel](https://parceljs.org/). Moduláris kód írását teszi lehetővé, amit aztán kisebb csomagokká csomagol a gyorsabb betöltési idő optimalizálása érdekében. |
87 | 88 |
|
88 |
| -* A **compiler** such as [Babel](https://babeljs.io/). It lets you write modern JavaScript code that still works in older browsers. |
| 89 | +* Egy **fordítóprogram**, mint a [Babel](https://babeljs.io/). Modern JavaScript kód írását teszi lehetővé, ami még így is működni fog régebbi böngészőkben. |
89 | 90 |
|
90 |
| -If you prefer to set up your own JavaScript toolchain from scratch, [check out this guide](https://blog.usejournal.com/creating-a-react-app-from-scratch-f3c693b84658) that re-creates some of the Create React App functionality. |
| 91 | +Ha inkább szeretnél egy saját JavaScript eszökzláncot összeállítani a semmiből, akkor [nézd meg ezt az útmutatót](https://blog.usejournal.com/creating-a-react-app-from-scratch-f3c693b84658), ami a Create React App funkcionalitását utánozza. |
91 | 92 |
|
92 |
| -Don't forget to ensure your custom toolchain [is correctly set up for production](/docs/optimizing-performance.html#use-the-production-build). |
| 93 | +Ne felejts el meggyőződni róla, hogy az egyedi eszközláncod [helyesen van beállítva a végstádiumhoz](/docs/optimizing-performance.html#use-the-production-build). |
0 commit comments