Skip to content

Sync with reactjs.org @ b4b59062 #71

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

Merged
merged 12 commits into from
Jun 1, 2020
4 changes: 2 additions & 2 deletions content/community/courses.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ permalink: community/courses.html

- [React Armory: Learn React by Itself](https://reactarmory.com/guides/learn-react-by-itself) - With React Armory, you can learn React without the buzzwords.

- [The Road to Learn React](https://www.robinwieruch.de/the-road-to-learn-react/) - Build a real world application in plain React without complicated tooling.

- [Egghead.io: The Beginner's Guide to ReactJS](https://egghead.io/courses/the-beginner-s-guide-to-reactjs) - Free course for React newbies and those looking to get a better understanding of React fundamentals.

- [Free React Bootcamp](https://tylermcginnis.com/free-react-bootcamp/) - Recordings from three days of a free online React bootcamp.
Expand Down Expand Up @@ -49,3 +47,5 @@ permalink: community/courses.html
- [Tyler McGinnis](https://tylermcginnis.com/courses) - Tyler McGinnis provides access to his courses for a monthly fee. Courses include "React Fundamentals" and "Universal React".

- [Mastering React](https://codewithmosh.com/p/mastering-react/) - Build professional interactive apps with React.

- [Road to React](https://www.roadtoreact.com/) - Your journey to master React in JavaScript.
4 changes: 2 additions & 2 deletions content/docs/concurrent-mode-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ The tradeoff we're making here is that `<ProfileTimeline>` will be inconsistent

Whether or not it's an appropriate tradeoff depends on the situation. But it's a handy tool, especially when the content doesn't change noticeably between items, and the user might not even realize they were looking at a stale version for a second.

It's worth noting that `useDeferredValue` is not *only* useful for data fetching. It also helps when an expensive component tree causes an interaction (e.g. typing in an input) to be sluggish. Just like we can "defer" a value that takes too long to fetch (and show its old value despite others components updating), we can do this with trees that take too long to render.
It's worth noting that `useDeferredValue` is not *only* useful for data fetching. It also helps when an expensive component tree causes an interaction (e.g. typing in an input) to be sluggish. Just like we can "defer" a value that takes too long to fetch (and show its old value despite other components updating), we can do this with trees that take too long to render.

For example, consider a filterable list like this:

Expand Down Expand Up @@ -926,7 +926,7 @@ function ProfilePage({ resource }) {

The `revealOrder="forwards"` option means that the closest `<Suspense>` nodes inside this list **will only "reveal" their content in the order they appear in the tree -- even if the data for them arrives in a different order**. `<SuspenseList>` has other interesting modes: try changing `"forwards"` to `"backwards"` or `"together"` and see what happens.

You can control how many loading states are visible at once with the `tail` prop. If we specify `tail="collapsed"`, we'll see *at most one* fallback at the time. You can play with it [here](https://codesandbox.io/s/adoring-almeida-1zzjh).
You can control how many loading states are visible at once with the `tail` prop. If we specify `tail="collapsed"`, we'll see *at most one* fallback at a time. You can play with it [here](https://codesandbox.io/s/adoring-almeida-1zzjh).

Keep in mind that `<SuspenseList>` is composable, like anything in React. For example, you can create a grid by putting several `<SuspenseList>` rows inside a `<SuspenseList>` table.

Expand Down
2 changes: 2 additions & 0 deletions content/docs/create-a-new-react-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ A következő eszközláncok több rugalmasságot és lehetőséget biztosítana

- 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/).

- Az **[Nx](https://nx.dev/react)** egy full-stack monorepo fejlesztéshez való eszközkészlet, ami egyebek mellett beépített React, Next.js, [Express](https://expressjs.com/) támogatással is rendelkezik.

- 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).

- 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.
Expand Down
3 changes: 1 addition & 2 deletions content/docs/lists-and-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ function NumberList(props) {
const numbers = props.numbers;
const listItems = numbers.map((number) =>
// Helyes! A kulcsot itt kell definiálni:
<ListItem key={number.toString()}
value={number} />
<ListItem key={number.toString()} value={number} />
);
return (
<ul>
Expand Down
8 changes: 1 addition & 7 deletions content/docs/state-and-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Vegyük át gyorsan mi is történik és a metódusok milyen sorrendben vannak m

5) Ha a `Clock` komponens el lesz távolítva a DOM-ból, a React meghívja a `componentWillUnmount()` életciklus metódust és az időzítő így megáll.

## Az állapot helyes használata {#using-state-Helyesly}
## Az állapot helyes használata {#using-state-correctly}

Három dolog van, amit tudnod kell a `setState()` metódusról.

Expand Down Expand Up @@ -417,12 +417,6 @@ Ezért van az, hogy az állapotot gyakran hívjuk helyinek, vagy egységbe zárt

Egy komponens dönthet úgy, hogy leküldi a saját állapotát prop-ként a gyermek komponenseinek:

```js
<h2>Az idő {this.state.date.toLocaleTimeString()}.</h2>
```

Ez működik felhasználó által definiált komponensnél is:

```js
<FormattedDate date={this.state.date} />
```
Expand Down
1 change: 1 addition & 0 deletions src/css/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ html {
body {
overflow-x: hidden;
position: relative;
filter: grayscale(100%);
}

* {
Expand Down