Skip to content

Commit 83504d2

Browse files
committed
ID delle intestazioni in lingua originale
1 parent c6c6dfd commit 83504d2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: content/docs/faq-ajax.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ class MyComponent extends React.Component {
5050
items: result.items
5151
});
5252
},
53-
// Nota: è importante gestire gli errori qui
54-
// invece di un blocco catch() in modo da non fare passare
55-
// eccezioni da bug reali nei componenti.
53+
// Note: it's important to handle errors here
54+
// instead of a catch() block so that we don't swallow
55+
// exceptions from actual bugs in components.
5656
(error) => {
5757
this.setState({
5858
isLoaded: true,
@@ -92,9 +92,9 @@ function MyComponent() {
9292
const [items, setItems] = useState([]);
9393

9494

95-
// Nota: l'array deps vuoto [] significa
96-
// questo useEffect verrà eseguito una volta
97-
// simile a componentDidMount()
95+
// Note: the empty deps array [] means
96+
// this useEffect will run once
97+
// similar to componentDidMount()
9898
useEffect(() => {
9999
fetch("https://api.example.com/items")
100100
.then(res => res.json())
@@ -103,9 +103,9 @@ function MyComponent() {
103103
setIsLoaded(true);
104104
setItems(result);
105105
},
106-
// Nota: è importante gestire gli errori qui
107-
// invece di un blocco catch() in modo da non fare passare
108-
// eccezioni da bug reali nei componenti.
106+
// Note: it's important to handle errors here
107+
// instead of a catch() block so that we don't swallow
108+
// exceptions from actual bugs in components.
109109
(error) => {
110110
setIsLoaded(true);
111111
setError(error);

0 commit comments

Comments
 (0)