Skip to content

Commit 83d6d43

Browse files
committed
chore(conflicts): sorted out merge conflicts
Signed-off-by: Alessandro De Blasis <[email protected]>
1 parent 52bb9f3 commit 83d6d43

7 files changed

+16
-60
lines changed

content/docs/addons-test-utils.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,8 @@ it('can render and update a counter', () => {
122122
});
123123
```
124124

125-
<<<<<<< HEAD
126-
Non dimenticare che generare degli eventi DOM ha effetto solamente quando il contenitore dello stesso è aggiunto al `document`. Puoi usare una libreria come [`react-testing-library`](https://github.com/kentcdodds/react-testing-library) per aumentare la pulizia del codice.
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.
129-
130-
- The [`recipes`](/docs/testing-recipes.html) document contains more details on how `act()` behaves, with examples and usage.
131-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
125+
- Non dimenticare che generare degli eventi DOM ha effetto solamente quando il contenitore dello stesso è aggiunto al `document`. Puoi usare una libreria come [React Testing Library](https://testing-library.com/react) per aumentare la pulizia del codice.
126+
- La documentazione sulle [`ricette`](/docs/testing-recipes.html) contiene maggiori dettagli su come funziona `act()`, insieme ad esempi d'uso.
132127

133128
* * *
134129

@@ -145,11 +140,7 @@ Passare il mock di un componente a questo metodo consente di migliorarlo, metten
145140

146141
> Nota:
147142
>
148-
<<<<<<< HEAD
149-
> `mockComponent()` è un'API legacy. Raccomandiamo l'utilizzo di [shallow rendering](/docs/shallow-renderer.html) oppure [`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-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
143+
> `mockComponent()` è un'API legacy. Raccomandiamo l'utilizzo di [`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock).
153144
154145
* * *
155146

content/docs/getting-started.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,7 @@ Non tutte le release di React meritano un blog post, potrai comunque trovare la
119119

120120
## Documentazione Versionata {#versioned-documentation}
121121

122-
<<<<<<< HEAD
123-
Questa documentazione riflette sempre l'ultima versione stabile di React. A partire da React 16, puoi trovare le vecchie versioni della documentazione [in una pagina separata](/versions). Nota che la documentazione per le versioni precedenti viene salvata al momento del rilascio, non riceve più aggiornamenti in seguito.
124-
=======
125-
This documentation always reflects the latest stable version of React. Since React 16, you can find older versions of the documentation on a [separate page](/versions). Note that documentation for past versions is snapshotted at the time of the release, and isn't being continuously updated.
126-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
122+
Questa documentazione riflette sempre l'ultima versione stabile di React. A partire da React 16, puoi trovare le vecchie versioni della documentazione in una [pagina separata](/versions). Nota che la documentazione per le versioni precedenti viene salvata al momento del rilascio, non riceve più aggiornamenti in seguito.
127123

128124
## Manca Qualcosa? {#something-missing}
129125

content/docs/hooks-intro.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@ Questa nuova funzione `useState` è il primo "Hook" che impareremo, l'esempio ap
3131

3232
>Nota
3333
>
34-
<<<<<<< HEAD
35-
>React 16.8.0 è la prima versione che supporta gli Hooks. Durante l'upgrade, non dimenticare di aggiornare tutti i pacchetti, incluso React DOM. React Native supporterà gli Hooks nella prossima release stabile.
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-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
34+
>React 16.8.0 è la prima versione che supporta gli Hooks. Durante l'upgrade, non dimenticare di aggiornare tutti i pacchetti, incluso React DOM.
35+
>React Native supporta gli Hooks a partire dalla [release 0.59 di React Native](https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059).
4036
4137
## Introduzione Video {#video-introduction}
4238

content/docs/nav.yml

+2-11
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,9 @@
5858
- id: optimizing-performance
5959
title: Ottimizzare le Prestazioni
6060
- id: portals
61-
<<<<<<< HEAD
6261
title: Portali
63-
=======
64-
title: Portals
6562
- id: profiler
6663
title: Profiler
67-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
6864
- id: react-without-es6
6965
title: React senza ES6
7066
- id: react-without-jsx
@@ -128,21 +124,16 @@
128124
- id: hooks-reference
129125
title: API di Riferimento degli Hooks
130126
- id: hooks-faq
131-
<<<<<<< HEAD
132127
title: FAQ sugli Hooks
133-
- title: Contribuire
134-
=======
135-
title: Hooks FAQ
136128
- title: Testing
137129
items:
138130
- id: testing
139131
title: Testing Overview
140132
- id: testing-recipes
141133
title: Testing Recipes
142134
- id: testing-environments
143-
title: Testing Environments
144-
- title: Contributing
145-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
135+
title: Testing Environments
136+
- title: Contribuire
146137
items:
147138
- id: how-to-contribute
148139
title: Come Contribuire

content/docs/reference-test-renderer.md

+8-16
Original file line numberDiff line numberDiff line change
@@ -103,41 +103,37 @@ expect(testInstance.findByProps({className: "sub"}).children).toEqual(['Sub']);
103103
TestRenderer.create(element, options);
104104
```
105105

106-
<<<<<<< HEAD
107-
Crea un'istanza di `TestRenderer` tramite l'elemento React passato in input. Non utilizza il DOM reale, ma renderizza comunque in maniera completa l'alberatura del componente in memoria così da poter fare asserzioni su di essa.
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+
Crea un'istanza di `TestRenderer` tramite l'elemento React passato in input. Non utilizza il DOM reale, ma renderizza comunque in maniera completa l'alberatura del componente in memoria così da poter fare asserzioni su di essa. Ritorna una [istanza di TestRenderer](#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+
Similarmente all'[helper `act()` di `react-dom/test-utils`](/docs/test-utils.html#act), `TestRenderer.act` prepara un componente per le asserzioni. Usa questa versione di `act()` per il wrapping di chiamate a `TestRenderer.create` e `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'; // Il componente in test
122119

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

129-
// make assertions on root
126+
// asserzioni sulla root
130127
expect(root.toJSON()).toMatchSnapshot();
131128

132-
// update with some different props
129+
// aggiornamenti qualche props
133130
act(() => {
134131
root = root.update(<App value={2}/>);
135132
})
136133

137-
// make assertions on root
134+
// asserzioni sulla root
138135
expect(root.toJSON()).toMatchSnapshot();
139136
```
140-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
141137

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

@@ -153,11 +149,7 @@ Ritorna un oggetto che raffigura l'albero renderizzato. Questo albero contiene s
153149
testRenderer.toTree()
154150
```
155151

156-
<<<<<<< HEAD
157-
Ritorna un oggetto che raffigura l'albero renderizzato. A differenza di `toJSON()`, la rappresentazione è più dettagliata di quella fornita da `toJSON()`, e include componenti scritti dall'utente. Probabilmente non hai bisogno di questo metodo a meno che non stia scrivendo una tua libreria di asserzioni sul test renderer.
158-
=======
159-
Return an object representing the rendered tree. The representation is more detailed than the one provided by `toJSON()`, and includes the user-written components. You probably don't need this method unless you're writing your own assertion library on top of the test renderer.
160-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
152+
Ritorna un oggetto che raffigura l'albero renderizzato. La rappresentazione è più dettagliata di quella fornita da `toJSON()`, e include componenti scritti dall'utente. Probabilmente non hai bisogno di questo metodo a meno che non stia scrivendo una tua libreria di asserzioni sul test renderer.
161153

162154
### `testRenderer.update()` {#testrendererupdate}
163155

src/site-constants.js

-5
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://it.reactjs.org';
12-
const version = '16.8.6';
13-
=======
14-
const urlRoot = 'https://reactjs.org';
1511
const version = '16.9.0';
16-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
1712
const babelURL = 'https://unpkg.com/[email protected]/babel.min.js';
1813

1914
export {babelURL, urlRoot, version};

static/html/single-file-example.html

-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
77
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
88

9-
<<<<<<< HEAD
109
<!-- /!\ Non importare Babel nel browser in produzione: -->
11-
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
12-
=======
13-
<!-- Don't use this in production: -->
1410
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
15-
>>>>>>> 941f54180ef5e652221f54ef6d1f6f2e9e063597
1611
</head>
1712
<body>
1813
<div id="root"></div>

0 commit comments

Comments
 (0)