-
Notifications
You must be signed in to change notification settings - Fork 54
Translate 'Home Page' #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: A Component Using External Plugins | ||
title: Korzystanie z zewnętrznej biblioteki | ||
order: 3 | ||
domid: markdown-example | ||
--- | ||
|
||
React allows you to interface with other libraries and frameworks. This example uses **remarkable**, an external Markdown library, to convert the `<textarea>`'s value in real time. | ||
React pozwala na używanie innych bibliotek i frameworków. W tym przykładzie skorzystaliśmy z **remarkable**, zewnętrznej biblioteki obsługującej składnię Markdown, aby w czasie rzeczywistym przekształcać wartość z pola `<textarea>`. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
title: A Simple Component | ||
title: Prosty komponent | ||
order: 0 | ||
domid: hello-example | ||
--- | ||
|
||
React components implement a `render()` method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by `render()` via `this.props`. | ||
Komponenty reactowe zawierają metodę `render()`, która na podstawie danych wejściowych oblicza, co powinno zostać wyświetlone. W tym przykładzie użyliśmy podobnej do XML-a składni o nazwie JSX. Dane przekazane do komponentu można odczytać ze zmiennej `this.props`. | ||
|
||
**JSX is optional and not required to use React.** Try the [Babel REPL](babel://es5-syntax-example) to see the raw JavaScript code produced by the JSX compilation step. | ||
**Używanie składni JSX nie jest wymagane w Reakcie.** W środowisku [Babel REPL](babel://es5-syntax-example) możesz podejrzeć surowy kod, powstały w wyniku kompilacji składni JSX. | ||
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
--- | ||||||
title: A Stateful Component | ||||||
title: Komponent ze stanem | ||||||
order: 1 | ||||||
domid: timer-example | ||||||
--- | ||||||
|
||||||
In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`. | ||||||
Poza danymi wejściowymi do komponentu (dostępnymi w zmiennej `this.props`), komponent może zarządzać swoim wewnętrznym stanem (dostępnym pod `this.state`). Przy każdej zmianie stanu komponentu następuje ponownie wywołanie metody `render()`, co skutkuje zaktualizowaniem wyrenderowanej struktury. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moim zdaniem nie powinno być tutaj przecinka, bo nie pełni on żadnej funkcji. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pytanie czy powinniśmy nazywac There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Masz rację, przydałoby się zachować tu konsekwencję. "pod" to był skrót myślowy od "pod nazwą", ale to tak czy inaczej nie pasuje do tego kontekstu. Myślę, że "obiekt" lub "właściwość" będą tu lepiej pasować. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ewentualnie można pominąć to słowo przed i zostawić samo "dostępnym w There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A ja nie widzę tu najmniejszego problemu. Co więcej wydaje mi się, że wersja początkowa brzmi lepiej. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: An Application | ||
title: Aplikacja | ||
order: 2 | ||
domid: todos-example | ||
--- | ||
|
||
Using `props` and `state`, we can put together a small Todo application. This example uses `state` to track the current list of items as well as the text that the user has entered. Although event handlers appear to be rendered inline, they will be collected and implemented using event delegation. | ||
Przy pomocy zmiennych `props` oraz `state` możemy stworzyć małą aplikację z listą zadań. Ten przykład wykorzystuje `state` do śledzenia zmian w liście elementów oraz wartości z pola tekstowego. Mimo że uchwyty do obsługi zdarzeń wydają się tu być renderowane wraz z komponentem, to tak naprawdę zostaną one zebrane i odpowiednio zaimplementowane przy użyciu mechanizmu obsługi zdarzeń. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: Component-Based | ||
title: Oparty na komponentach | ||
order: 1 | ||
--- | ||
|
||
Build encapsulated components that manage their own state, then compose them to make complex UIs. | ||
Twórz izolowane komponenty, które zarządzają własnym stanem, a później łącz je w złożony UI. | ||
|
||
Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM. | ||
Jako że logika komponentów pisana jest w JavaScripcie, a nie w szablonach, przekazywanie skomplikowanych struktur danych i przechowywanie stanu aplikacji poza drzewem DOM staje się łatwiejsze. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: Declarative | ||
title: Deklaratywny | ||
order: 0 | ||
--- | ||
|
||
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. | ||
React znacznie ułatwia tworzenie interaktywnych UI. Zaprojektuj proste widoki obsługujące stan aplikacji, a React zajmie się sprawną aktualizacją i ponownym renderowaniem odpowiednich komponentów. | ||
|
||
Declarative views make your code more predictable and easier to debug. | ||
Deklaratywne widoki sprawiają, że kod staje się bardziej przewidywalny i łatwiejszy do debugowania. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: Learn Once, Write Anywhere | ||
title: Naucz się raz, używaj wszędzie | ||
order: 2 | ||
--- | ||
|
||
We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. | ||
React działa w izolacji od reszty stosu technologicznego, dzięki czemu możesz w nim tworzyć nowe funkcjonalności, bez konieczności przepisywania istniejącego kodu. | ||
|
||
React can also render on the server using Node and power mobile apps using [React Native](https://facebook.github.io/react-native/). | ||
React potrafi również renderować po stronie serwera przy użyciu Node, a także napędzać aplikacje mobilne za pomocą [React Native](https://facebook.github.io/react-native/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proponuję nie pomijać tutaj JavaScript