Skip to content

Commit 2857186

Browse files
committed
Resolve merge conflicts
1 parent 41a15dd commit 2857186

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/content/learn/typescript.md

-4
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,7 @@ export default App = AppTSX;
137137
const [enabled, setEnabled] = useState(false);
138138
```
139139

140-
<<<<<<< HEAD
141140
У цьому прикладі тип `boolean` буде заданий для змінної `enabled`, а `setEnabled` буде функцією, яка приймає або аргумент типу `boolean`, або функцію, що повертає `boolean`. Якщо ви хочете явно вказати тип для стану, передайте аргумент типу у виклику `useState`:
142-
=======
143-
This will assign the type of `boolean` to `enabled`, and `setEnabled` will be a function accepting either a `boolean` argument, or a function that returns a `boolean`. If you want to explicitly provide a type for the state, you can do so by providing a type argument to the `useState` call:
144-
>>>>>>> 9e1f5cd590fd066e72dda9022237bee30b499951
145141

146142
```ts
147143
// Явно задати тип "boolean"

0 commit comments

Comments
 (0)