Skip to content

Commit 86d8f34

Browse files
committed
chore(merge-conflicts)
Signed-off-by: Alessandro De Blasis <[email protected]>
1 parent e4d41ae commit 86d8f34

File tree

5 files changed

+6
-95
lines changed

5 files changed

+6
-95
lines changed

Diff for: content/docs/add-react-to-a-website.md

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,10 @@ Successivamente, aggiungi questi tre tag `<script>` alla pagina HTML, subito pri
5252
```html{5,6,9}
5353
<!-- ... altro HTML ... -->
5454
55-
<<<<<<< HEAD
5655
<!-- Carica React. -->
5756
<!-- Nota: quando rilasci il codice in produzione, sostituisci "development.js" con "production.min.js". -->
58-
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
59-
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
60-
=======
61-
<!-- Load React. -->
62-
<!-- Note: when deploying, replace "development.js" with "production.min.js". -->
6357
<script src="https://unpkg.com/react@17/umd/react.development.js" crossorigin></script>
6458
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" crossorigin></script>
65-
>>>>>>> 6682068641c16df6547b3fcdb7877e71bb0bebf9
6659
6760
<!-- Carica il nostro componente React. -->
6861
<script src="bottone_like.js"></script>
@@ -91,11 +84,7 @@ const contenitoreDom = document.querySelector('#contenitore_bottone_like');
9184
ReactDOM.render(e(LikeButton), contenitoreDom);
9285
```
9386

94-
<<<<<<< HEAD
9587
Queste due linee di codice servono a trovare il `<div>` che abbiamo aggiunto al nostro HTML nel passo 1 e a visualizzare il nostro componente React del bottone "Mi Piace" al suo interno.
96-
=======
97-
These two lines of code find the `<div>` we added to our HTML in the first step, and then display our "Like" button React component inside of it.
98-
>>>>>>> 6682068641c16df6547b3fcdb7877e71bb0bebf9
9988

10089
### Tutto qua! {#thats-it}
10190

Diff for: content/docs/cdn-links.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ Le versioni di cui sopra sono intese solo per ambienti di sviluppo, e non sono a
2020
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
2121
```
2222

23-
<<<<<<< HEAD
24-
Per caricare una versione specifica di `react` e `react-dom`, sostituisci `16` con il numero di versione desiderato.
25-
=======
26-
To load a specific version of `react` and `react-dom`, replace `17` with the version number.
27-
>>>>>>> 6682068641c16df6547b3fcdb7877e71bb0bebf9
23+
Per caricare una versione specifica di `react` e `react-dom`, sostituisci `17` con il numero di versione desiderato.
2824

2925
### Perché l'attributo `crossorigin`? {#why-the-crossorigin-attribute}
3026

Diff for: content/docs/reference-events.md

+5-66
Original file line numberDiff line numberDiff line change
@@ -34,41 +34,11 @@ string type
3434

3535
> Nota:
3636
>
37-
<<<<<<< HEAD
38-
> A partire da v0.14, ritornare `false` da un event handler non fermerà la propagazione dell'evento come avveniva in precedenza. Invece, `e.stopPropagation()` o `e.preventDefault()` dovrebbero essere invocati manualmente, ove opportuno.
39-
40-
### Pooling degli Eventi {#event-pooling}
41-
42-
`SyntheticEvent` è _pooled_, ovvero "accomunato". Questo significa che un oggetto `SyntheticEvent` sarà riutilizzato e che tutte proprietà verranno resettate a `null` non appena la callback dell'evento è stata invocata.
43-
Ciò avviene per migliorare le prestazioni.
44-
Per questo, non puoi avere accesso all'evento in modo asincrono.
45-
46-
```javascript
47-
function onClick(event) {
48-
console.log(event); // => oggetto nullifficato.
49-
console.log(event.type); // => "click"
50-
const eventType = event.type; // => "click"
51-
52-
setTimeout(function() {
53-
console.log(event.type); // => null
54-
console.log(eventType); // => "click"
55-
}, 0);
56-
57-
// Non funzionerebbe. this.state.clickEvent conterrà solo valori nulli
58-
this.setState({clickEvent: event});
59-
60-
// YPuoi comunque esportare le proprietà dell'evento.
61-
this.setState({eventType: event.type});
62-
}
63-
```
64-
=======
65-
> As of v17, `e.persist()` doesn't do anything because the `SyntheticEvent` is no longer [pooled](/docs/legacy-event-pooling.html).
66-
>>>>>>> 6682068641c16df6547b3fcdb7877e71bb0bebf9
37+
> A partire da v17, `e.persist()` non fa più nulla in quanto `SyntheticEvent` non è più [pooled](/docs/legacy-event-pooling.html).
6738
6839
> Nota:
6940
>
70-
<<<<<<< HEAD
71-
> Se vuoi avere accesso alle proprietà in modo asincrono, dovresti invocare `event.persist()` sull'evento, il quale rimuoverà l'evento sintetico dal pool permettendo ai riferimenti all'evento di rimanere mantenuti dal codice utente.
41+
> A partire da v0.14, ritornare `false` da un event handler non fermerà più la propagazione dell'evento. In modo più appropriato, è invece necessario invocare `e.stopPropagation()` o `e.preventDefault()`.
7242
7343
## Eventi Supportati {#supported-events}
7444

@@ -93,33 +63,6 @@ Gli event handlers di seguito vengono scatenati da un evento nella fase di [bubb
9363
- [Eventi delle Animazioni](#animation-events)
9464
- [Eventi della Transizione](#transition-events)
9565
- [Altri Eventi](#other-events)
96-
=======
97-
> As of v0.14, returning `false` from an event handler will no longer stop event propagation. Instead, `e.stopPropagation()` or `e.preventDefault()` should be triggered manually, as appropriate.
98-
99-
## Supported Events {#supported-events}
100-
101-
React normalizes events so that they have consistent properties across different browsers.
102-
103-
The event handlers below are triggered by an event in the bubbling phase. To register an event handler for the capture phase, append `Capture` to the event name; for example, instead of using `onClick`, you would use `onClickCapture` to handle the click event in the capture phase.
104-
105-
- [Clipboard Events](#clipboard-events)
106-
- [Composition Events](#composition-events)
107-
- [Keyboard Events](#keyboard-events)
108-
- [Focus Events](#focus-events)
109-
- [Form Events](#form-events)
110-
- [Generic Events](#generic-events)
111-
- [Mouse Events](#mouse-events)
112-
- [Pointer Events](#pointer-events)
113-
- [Selection Events](#selection-events)
114-
- [Touch Events](#touch-events)
115-
- [UI Events](#ui-events)
116-
- [Wheel Events](#wheel-events)
117-
- [Media Events](#media-events)
118-
- [Image Events](#image-events)
119-
- [Animation Events](#animation-events)
120-
- [Transition Events](#transition-events)
121-
- [Other Events](#other-events)
122-
>>>>>>> 6682068641c16df6547b3fcdb7877e71bb0bebf9
12366

12467
* * *
12568

@@ -411,15 +354,11 @@ Nomi degli eventi:
411354
onScroll
412355
```
413356

414-
<<<<<<< HEAD
415-
Proprietà:
416-
=======
417-
>Note
357+
>Nota
418358
>
419-
>Starting with React 17, the `onScroll` event **does not bubble** in React. This matches the browser behavior and prevents the confusion when a nested scrollable element fires events on a distant parent.
359+
>A partire da React 17, l'evento `onScroll` **non fa bubble** in React. Si comporta quindi come il browser e previene la confusione che si ha quando un elemendo scrollabile nidificato lancia eventi su genitori distanti nel DOM.
420360
421-
Properties:
422-
>>>>>>> 6682068641c16df6547b3fcdb7877e71bb0bebf9
361+
Proprietà:
423362

424363
```javascript
425364
number detail

Diff for: 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.14.0';
13-
=======
14-
const urlRoot = 'https://reactjs.org';
1511
const version = '17.0.1';
16-
>>>>>>> 6682068641c16df6547b3fcdb7877e71bb0bebf9
1712
const babelURL = 'https://unpkg.com/[email protected]/babel.min.js';
1813

1914
export {babelURL, urlRoot, version};

Diff for: static/html/single-file-example.html

-8
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,11 @@
22
<html>
33
<head>
44
<meta charset="UTF-8" />
5-
<<<<<<< HEAD
65
<title>Ciao Mondo</title>
7-
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
8-
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
9-
10-
<!-- /!\ Non importare Babel nel browser in produzione: -->
11-
=======
12-
<title>Hello World</title>
136
<script src="https://unpkg.com/react@17/umd/react.development.js"></script>
147
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
158

169
<!-- Don't use this in production: -->
17-
>>>>>>> 6682068641c16df6547b3fcdb7877e71bb0bebf9
1810
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
1911
</head>
2012
<body>

0 commit comments

Comments
 (0)