Skip to content

Commit 067e4a7

Browse files
Merge branch 'master' into tutorial
2 parents cc6ed15 + fa7ffc5 commit 067e4a7

39 files changed

+218
-198
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The documentation is divided into several sections with a different tone and pur
3636

3737
### Make the change
3838

39-
1. Follow the "Running locally" instructions
39+
1. Follow the ["Running locally"](#running-locally) instructions
4040
1. Save the files and check in the browser
4141
1. Changes to React components in `src` will hot-reload
4242
1. Changes to markdown files in `content` will hot-reload

content/blog/2015-12-18-react-components-elements-and-instances.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ React will ask the `Form` component what element tree it returns, given those `p
350350
}
351351
```
352352
353-
This is a part of the process that React calls [reconciliation](/docs/reconciliation.html) which starts when you call [`ReactDOM.render()`](/docs/top-level-api.html#reactdom.render) or [`setState()`](/docs/component-api.html#setstate). By the end of the reconciliation, React knows the result DOM tree, and a renderer like `react-dom` or `react-native` applies the minimal set of changes necessary to update the DOM nodes (or the platform-specific views in case of React Native).
353+
This is a part of the process that React calls [reconciliation](/docs/reconciliation.html) which starts when you call [`ReactDOM.render()`](/docs/top-level-api.html#reactdom.render) or [`setState()`](/docs/component-api.html#setstate). By the end of the reconciliation, React knows the resulting DOM tree, and a renderer like `react-dom` or `react-native` applies the minimal set of changes necessary to update the DOM nodes (or the platform-specific views in case of React Native).
354354
355355
This gradual refining process is also the reason React apps are easy to optimize. If some parts of your component tree become too large for React to visit efficiently, you can tell it to [skip this “refining” and diffing certain parts of the tree if the relevant props have not changed](/docs/advanced-performance.html). It is very fast to calculate whether the props have changed if they are immutable, so React and immutability work great together, and can provide great optimizations with the minimal effort.
356356

content/blog/2018-11-27-react-16-roadmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Hooks represent our vision for the future of React. They solve both problems tha
108108

109109
### React 16.x (~Q2 2019): The One with Concurrent Mode {#react-16x-q2-2019-the-one-with-concurrent-mode}
110110

111-
*Concurrent Mode* lets React apps be more responsive by rendering component trees without blocking the main thread. It is opt-in and allows React to interrupt a long-running render (for example, rendering a new feed story) to handle a high-priority event (for example, text input or hover). Concurrent Mode also improves the user experience of Suspense by skipping unnecessary loading states on fast connections.
111+
*Concurrent Mode* lets React apps be more responsive by rendering component trees without blocking the main thread. It is opt-in and allows React to interrupt a long-running render (for example, rendering a news feed story) to handle a high-priority event (for example, text input or hover). Concurrent Mode also improves the user experience of Suspense by skipping unnecessary loading states on fast connections.
112112

113113
>Note
114114
>

content/blog/2019-10-22-react-release-channels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Releases in Next are published with the `next` tag on npm. Versions are generate
5151

5252
The Next channel is designed to support integration testing between React and other projects.
5353

54-
All changes to React go through extensive internal testing before they are released to the public. However, there are a myriad of environments and configurations used throughout the React ecosystem, and it's not possible for us to test against every single one.
54+
All changes to React go through extensive internal testing before they are released to the public. However, there are myriad environments and configurations used throughout the React ecosystem, and it's not possible for us to test against every single one.
5555

5656
If you're the author of a third party React framework, library, developer tool, or similar infrastructure-type project, you can help us keep React stable for your users and the entire React community by periodically running your test suite against the most recent changes. If you're interested, follow these steps:
5757

content/community/conferences.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ Do you know of a local React.js conference? Add it here! (Please keep the list c
1212

1313
## Upcoming Conferences {#upcoming-conferences}
1414

15-
### React Barcamp Cologne 2020 {#react-barcamp-cologne-2020}
16-
February 1-2, 2020 in Cologne, Germany
17-
18-
[Website](https://react-barcamp.de/) - [Twitter](https://twitter.com/ReactBarcamp) - [Facebook](https://www.facebook.com/reactbarcamp)
19-
20-
### ReactConf AU 2020 {#reactconfau}
21-
February 27 & 28, 2020 in Sydney, Australia
22-
23-
[Website](https://reactconfau.com/) - [Twitter](https://twitter.com/reactconfau) - [Facebook](https://www.facebook.com/reactconfau) - [Instagram](https://www.instagram.com/reactconfau/)
24-
2515
### ReactConf Japan 2020 {#reactconfjp-2020}
2616
March 21, 2020 in Tokyo, Japan
2717

@@ -511,3 +501,12 @@ December 6, 2019 in Berlin, Germany
511501

512502
[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.facebook.com/reactdayberlin/) - [Videos](https://www.youtube.com/reactdayberlin)
513503

504+
### React Barcamp Cologne 2020 {#react-barcamp-cologne-2020}
505+
February 1-2, 2020 in Cologne, Germany
506+
507+
[Website](https://react-barcamp.de/) - [Twitter](https://twitter.com/ReactBarcamp) - [Facebook](https://www.facebook.com/reactbarcamp)
508+
509+
### ReactConf AU 2020 {#reactconfau}
510+
February 27 & 28, 2020 in Sydney, Australia
511+
512+
[Website](https://reactconfau.com/) - [Twitter](https://twitter.com/reactconfau) - [Facebook](https://www.facebook.com/reactconfau) - [Instagram](https://www.instagram.com/reactconfau/)

content/community/meetups.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet
8484
* [Chennai](https://www.meetup.com/React-Chennai/)
8585
* [Delhi NCR](https://www.meetup.com/React-Delhi-NCR/)
8686
* [Jaipur](https://www.meetup.com/JaipurJS-Developer-Meetup/)
87+
* [Pune](https://www.meetup.com/ReactJS-and-Friends/)
8788

8889
## Indonesia {#indonesia}
8990
* [Indonesia](https://www.meetup.com/reactindonesia/)

content/docs/addons-animation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The [`ReactTransitionGroup`](#low-level-api-reacttransitiongroup) add-on compone
2323
**Importing**
2424

2525
```javascript
26-
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; // ES6
27-
var ReactCSSTransitionGroup = require('react-addons-css-transition-group'); // ES5 with npm
26+
import ReactCSSTransitionGroup from 'react-transition-group'; // ES6
27+
var ReactCSSTransitionGroup = require('react-transition-group'); // ES5 with npm
2828
```
2929

3030
```javascript{31-36}
@@ -199,7 +199,7 @@ render() {
199199
In the example above, we rendered a list of items into `ReactCSSTransitionGroup`. However, the children of `ReactCSSTransitionGroup` can also be one or zero items. This makes it possible to animate a single element entering or leaving. Similarly, you can animate a new element replacing the current element. For example, we can implement a simple image carousel like this:
200200

201201
```javascript{10}
202-
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
202+
import ReactCSSTransitionGroup from 'react-transition-group';
203203
204204
function ImageCarousel(props) {
205205
return (
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
---
22
id: shallow-renderer
3-
title: Shallow Renderer
3+
title: Sekély renderelő
44
permalink: docs/shallow-renderer.html
55
layout: docs
66
category: Reference
77
---
88

9-
**Importing**
9+
**Importálás**
1010

1111
```javascript
1212
import ShallowRenderer from 'react-test-renderer/shallow'; // ES6
13-
var ShallowRenderer = require('react-test-renderer/shallow'); // ES5 with npm
13+
var ShallowRenderer = require('react-test-renderer/shallow'); // ES5 npm-mel
1414
```
1515

16-
## Overview {#overview}
16+
## Áttekintés {#overview}
1717

18-
When writing unit tests for React, shallow rendering can be helpful. Shallow rendering lets you render a component "one level deep" and assert facts about what its render method returns, without worrying about the behavior of child components, which are not instantiated or rendered. This does not require a DOM.
18+
Amikor egységteszteket írsz Reacthez, a sekély renderelés hasznos lehet. A sekély renderelés lehetővé teszi egy komponens renderelését "egy szint mélységig", és tényeket tudsz állítani arról, hogy a render metódus mit ad vissza anélkül, hogy a gyermekkomponensek viselkedésétől kéne aggódnod, mivel ezek nem lesznek renderelve. Ez nem igényel DOM-ot.
1919

20-
For example, if you have the following component:
20+
Például, ha van ez a komponensed:
2121

2222
```javascript
2323
function MyComponent() {
2424
return (
2525
<div>
26-
<span className="heading">Title</span>
26+
<span className="heading">Cím</span>
2727
<Subcomponent foo="bar" />
2828
</div>
2929
);
3030
}
3131
```
3232

33-
Then you can assert:
33+
Akkor az alábbit állíthatod:
3434

3535
```javascript
3636
import ShallowRenderer from 'react-test-renderer/shallow';
3737

38-
// in your test:
38+
// a tesztedben:
3939
const renderer = new ShallowRenderer();
4040
renderer.render(<MyComponent />);
4141
const result = renderer.getRenderOutput();
4242

4343
expect(result.type).toBe('div');
4444
expect(result.props.children).toEqual([
45-
<span className="heading">Title</span>,
45+
<span className="heading">Cím</span>,
4646
<Subcomponent foo="bar" />
4747
]);
4848
```
4949

50-
Shallow testing currently has some limitations, namely not supporting refs.
50+
A sekély renderelésnek jelenleg vannak korlátai, ugyanis nem támogatja a ref-eket.
5151

52-
> Note:
52+
> Megjegyzés:
5353
>
54-
> We also recommend checking out Enzyme's [Shallow Rendering API](https://airbnb.io/enzyme/docs/api/shallow.html). It provides a nicer higher-level API over the same functionality.
54+
> Ajánljuk továbbá, hogy nézz rá az Enzyme [Shallow Rendering API](https://airbnb.io/enzyme/docs/api/shallow.html)-jára. Ez szebb, felsőbbszintű API-ket szolgáltat ugyanazzal a funkcionalitással.
5555
56-
## Reference {#reference}
56+
## Referencia {#reference}
5757

5858
### `shallowRenderer.render()` {#shallowrendererrender}
5959

60-
You can think of the shallowRenderer as a "place" to render the component you're testing, and from which you can extract the component's output.
60+
Gondolhatsz úgy a shallowRenderer-re, mint egy "helyre", ahova a tesztelt komponenst renderelheted és ahonnan ki tudod vonni a komponens kimenetét.
6161

62-
`shallowRenderer.render()` is similar to [`ReactDOM.render()`](/docs/react-dom.html#render) but it doesn't require DOM and only renders a single level deep. This means you can test components isolated from how their children are implemented.
62+
A `shallowRenderer.render()` hasonló a [`ReactDOM.render()`](/docs/react-dom.html#render)-hez, de nincs szüksége DOM-ra, és csak egy szint mélységig renderel. Ez azt jelenti, hogy a komponenseket a gyermekeik implementációjától elzártan tudod tesztelni.
6363

6464
### `shallowRenderer.getRenderOutput()` {#shallowrenderergetrenderoutput}
6565

66-
After `shallowRenderer.render()` has been called, you can use `shallowRenderer.getRenderOutput()` to get the shallowly rendered output.
66+
A `shallowRenderer.render()` meghívása után használhatod a `shallowRenderer.getRenderOutput()` metódust, hogy megkapd a sekélyen renderelt kimenetet.
6767

68-
You can then begin to assert facts about the output.
68+
Ezután nekiállhatsz tényeket állítani a kimenetről.

0 commit comments

Comments
 (0)