We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7908c commit a4f792dCopy full SHA for a4f792d
2 files changed
lessons/lesson31/examples/useEffectPage/index.jsx
@@ -45,7 +45,7 @@ function UseEffectPage3({ userId = 2 }) {
45
// Эффект, зависящий от userId
46
useEffect(() => {
47
if (!userId) return;
48
- setIsLoading(true)
+ setIsLoading(true);
49
50
console.log("Сработаю при монтировании и изменении userId");
51
lessons/lesson31/examples/useMemoPage/index.jsx
@@ -17,12 +17,11 @@ function UseMemoPage() {
17
const [filter, setFilter] = useState("all");
18
const [counter, setCounter] = useState(0);
19
20
-
21
return (
22
<div style={{ padding: "20px" }}>
23
<h1>useMemo</h1>
24
25
- <button onClick={() => setCounter(c => c + 1)}>
+ <button onClick={() => setCounter((count) => count + 1)}>
26
Счётчик: {counter} (не влияет на TodoList!)
27
</button>
28
0 commit comments