Skip to content

Commit 38a8a37

Browse files
author
Jakub Drozdek
committed
Resolve sync conflicts
1 parent e11794d commit 38a8a37

File tree

8 files changed

+20
-67
lines changed

8 files changed

+20
-67
lines changed

content/docs/addons-test-utils.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,9 @@ it('potrafi wyrenderować i aktualizować licznik', () => {
122122
});
123123
```
124124

125-
<<<<<<< HEAD
126-
Zwróć uwagę, że przesyłanie zdarzeń DOM działa tylko wtedy, gdy kontener jest umieszczony w `document`. Aby uniknąć powtarzania szablonowego kodu, możesz użyć biblioteki pomocniczej, jak na przykład [`react-testing-library`](https://github.com/kentcdodds/react-testing-library).
127-
=======
128-
- Don't forget that dispatching DOM events only works when the DOM container is added to the `document`. You can use a library like [React Testing Library](https://testing-library.com/react) to reduce the boilerplate code.
125+
Zwróć uwagę, że przesyłanie zdarzeń DOM działa tylko wtedy, gdy kontener jest umieszczony w `document`. Aby uniknąć powtarzania szablonowego kodu, możesz użyć biblioteki pomocniczej, jak na przykład [React Testing Library](https://testing-library.com/react).
129126

130-
- The [`recipes`](/docs/testing-recipes.html) document contains more details on how `act()` behaves, with examples and usage.
131-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
127+
W [`przykładach`](/docs/testing-recipes.html) znajdziesz więcej szczegółów na temat zachowania funkcji `act()`, jak również przykłady jej użycia.
132128

133129
* * *
134130

@@ -145,11 +141,7 @@ Jeśli przekażesz do tej funkcji atrapę komponentu (ang. *mocked component*),
145141

146142
> Uwaga:
147143
>
148-
<<<<<<< HEAD
149-
> Funkcja `mockComponent()` jest przestarzała. Zamiast niej zalecamy używanie ["płytkiego renderowania"](/docs/shallow-renderer.html) (ang. *shallow rendering*) lub funkcji [`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock).
150-
=======
151-
> `mockComponent()` is a legacy API. We recommend using [`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock) instead.
152-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
144+
> Funkcja `mockComponent()` jest przestarzała. Zamiast niej zalecamy używanie funkcji [`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock).
153145
154146
* * *
155147

content/docs/code-splitting.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,10 @@ permalink: docs/code-splitting.html
66

77
## Pakowanie {#bundling}
88

9-
<<<<<<< HEAD
109
Większość reactowych aplikacji będzie "dołączała" swoje pliki poprzez narzędzia takie jak
11-
[Webpack](https://webpack.js.org/) czy [Browserify](http://browserify.org/).
10+
[Webpack](https://webpack.js.org/), [Rollup](https://rollupjs.org/) czy [Browserify](http://browserify.org/).
1211
Pakowanie to proces śledzenia zaimportowanych plików i łączenia ich w pojedynczy plik tzw. "bundle" (pol. *paczka*).
1312
Taka paczka może zostać umieszczona na stronie w celu załadowania całej aplikacji naraz.
14-
=======
15-
Most React apps will have their files "bundled" using tools like
16-
[Webpack](https://webpack.js.org/), [Rollup](https://rollupjs.org/) or
17-
[Browserify](http://browserify.org/).
18-
Bundling is the process of following imported files and merging them into a
19-
single file: a "bundle". This bundle can then be included on a webpage to load
20-
an entire app at once.
21-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
2213

2314
#### Przykład {#example}
2415

content/docs/hooks-intro.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@ Funkcja `useState` jest pierwszym „hookiem”, o którym będziemy się uczyć
3131

3232
>Uwaga
3333
>
34-
<<<<<<< HEAD
35-
>React 16.8.0 jest pierwszą wersją, która wspiera hooki. Podczas aktualizacji nie zapomnij zaktualizować wszystkich paczek, w tym React DOM. React Native będzie wspierał hooki w kolejnym, stabilnym wydaniu.
36-
=======
37-
>React 16.8.0 is the first release to support Hooks. When upgrading, don't forget to update all packages, including React DOM.
38-
>React Native supports Hooks since [the 0.59 release of React Native](https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059).
39-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
34+
>React 16.8.0 jest pierwszą wersją, która wspiera hooki. Podczas aktualizacji nie zapomnij zaktualizować wszystkich paczek, w tym React DOM.
35+
>React Native wspiera hooki [od wersji 0.59](https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059).
4036
4137
## Wprowadzenie wideo {#video-introduction}
4238

content/docs/nav.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,9 @@
5858
- id: optimizing-performance
5959
title: Optymalizacja wydajności
6060
- id: portals
61-
<<<<<<< HEAD
6261
title: Portale
63-
=======
64-
title: Portals
6562
- id: profiler
6663
title: Profiler
67-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
6864
- id: react-without-es6
6965
title: React bez ES6
7066
- id: react-without-jsx
@@ -128,21 +124,16 @@
128124
- id: hooks-reference
129125
title: Hooki - interfejs API
130126
- id: hooks-faq
131-
<<<<<<< HEAD
132127
title: Hooki - FAQ
133-
- title: Współpraca
134-
=======
135-
title: Hooks FAQ
136-
- title: Testing
128+
- title: Testowanie
137129
items:
138130
- id: testing
139-
title: Testing Overview
131+
title: Ogólne informacje
140132
- id: testing-recipes
141-
title: Testing Recipes
133+
title: Przykłady i dobre praktyki
142134
- id: testing-environments
143-
title: Testing Environments
144-
- title: Contributing
145-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
135+
title: Środowiska testowe
136+
- title: Współpraca
146137
items:
147138
- id: how-to-contribute
148139
title: Jak możesz pomóc

content/docs/reference-test-renderer.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,41 +103,37 @@ expect(testInstance.findByProps({className: "sub"}).children).toEqual(['Potomek'
103103
TestRenderer.create(element, options);
104104
```
105105

106-
<<<<<<< HEAD
107-
Tworzy instancję `TestRenderer` przy użyciu przekazanego elementu reactowego. Nie korzysta z prawdziwego drzewa DOM, lecz renderuje całe drzewo komponentów do pamięci, aby można było wykonać na nim asercje. Zwracana instancja posiada następujące metody i właściwości:
108-
=======
109-
Create a `TestRenderer` instance with the passed React element. It doesn't use the real DOM, but it still fully renders the component tree into memory so you can make assertions about it. Returns a [TestRenderer instance](#testrenderer-instance).
106+
Tworzy instancję `TestRenderer` przy użyciu przekazanego elementu reactowego. Nie korzysta z prawdziwego drzewa DOM, lecz renderuje całe drzewo komponentów do pamięci, aby można było wykonać na nim asercje. Zwraca [instancję TestRenderera](#testrenderer-instance).
110107

111108
### `TestRenderer.act()` {#testrendereract}
112109

113110
```javascript
114111
TestRenderer.act(callback);
115112
```
116113

117-
Similar to the [`act()` helper from `react-dom/test-utils`](/docs/test-utils.html#act), `TestRenderer.act` prepares a component for assertions. Use this version of `act()` to wrap calls to `TestRenderer.create` and `testRenderer.update`.
114+
Podobnie jak [funkcja pomocnicza `act()` z `react-dom/test-utils`](/docs/test-utils.html#act), `TestRenderer.act` przygotowuje komponent do późniejszych asercji. Używaj tej wersji funkcji `act()` do opakowania wywołań `TestRenderer.create` i `testRenderer.update`.
118115

119116
```javascript
120117
import {create, act} from 'react-test-renderer';
121-
import App from './app.js'; // The component being tested
118+
import App from './app.js'; // Testowany komponent
122119

123-
// render the component
120+
// wyrenderuj komponent
124121
let root;
125122
act(() => {
126123
root = create(<App value={1}/>)
127124
});
128125

129-
// make assertions on root
126+
// wykonaj sprawdzenia na korzeniu drzewa
130127
expect(root.toJSON()).toMatchSnapshot();
131128

132-
// update with some different props
129+
// zaktualizuj komponent przy użyciu innych właściwości
133130
act(() => {
134131
root = root.update(<App value={2}/>);
135132
})
136133

137-
// make assertions on root
134+
// wykonaj sprawdzenia na korzeniu drzewa
138135
expect(root.toJSON()).toMatchSnapshot();
139136
```
140-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
141137

142138
### `testRenderer.toJSON()` {#testrenderertojson}
143139

content/docs/render-props.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ Komponent z właściwością renderującą przyjmuje funkcję, zwracającą elem
1414
)}/>
1515
```
1616

17-
<<<<<<< HEAD
18-
Biblioteki używające właściwości renderujących to m.in. [React Router](https://reacttraining.com/react-router/web/api/Route/render-func) i [Downshift](https://github.com/paypal/downshift).
19-
=======
20-
Libraries that use render props include [React Router](https://reacttraining.com/react-router/web/api/Route/render-func), [Downshift](https://github.com/paypal/downshift) and [Formik](https://github.com/jaredpalmer/formik).
21-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
17+
Biblioteki używające właściwości renderujących to m.in. [React Router](https://reacttraining.com/react-router/web/api/Route/render-func), [Downshift](https://github.com/paypal/downshift) oraz [Formik](https://github.com/jaredpalmer/formik).
2218

2319
W tym dokumencie przedyskutujemy przydatność właściwości renderujących i dowiemy się, jak napisać je samodzielnie.
2420

src/components/LayoutFooter/Footer.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
9090
href="https://reactjs.org/community/support.html#popular-discussion-forums"
9191
target="_blank"
9292
rel="noopener">
93-
<<<<<<< HEAD
94-
Forum dyskusyjne
95-
=======
96-
Discussion Forums
97-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
93+
Fora dyskusyjne
9894
</ExternalFooterLink>
9995
<ExternalFooterLink
10096
href="https://discord.gg/0ZcbPKXt5bZjGY5n"

src/site-constants.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@
77

88
// NOTE: We can't just use `location.toString()` because when we are rendering
99
// the SSR part in node.js we won't have a proper location.
10-
<<<<<<< HEAD
1110
const urlRoot = 'https://pl.reactjs.org';
12-
const version = '16.8.6';
13-
=======
14-
const urlRoot = 'https://reactjs.org';
1511
const version = '16.9.0';
16-
>>>>>>> 519a3aec91a426b0c8c9ae59e292d064df48c66a
1712
const babelURL = 'https://unpkg.com/babel-standalone@6.26.0/babel.min.js';
1813

1914
export {babelURL, urlRoot, version};

0 commit comments

Comments
 (0)