Skip to content

Commit 85a7c27

Browse files
Small punctuation typo fix (#44)
1 parent 43a8653 commit 85a7c27

File tree

1 file changed

+1
-1
lines changed
  • questions/what-is-a-closure-and-how-why-would-you-use-one

1 file changed

+1
-1
lines changed

questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ console.log(counter()); // Outputs: 2
6565

6666
## Closures in React
6767

68-
Closures are everywhere. Below code shows a simple example of increasing a counter on a button click. In this code, `handleClick` forms a closure. It has access to it's outer scope variable `count` and `setCount`
68+
Closures are everywhere. Below code shows a simple example of increasing a counter on a button click. In this code, `handleClick` forms a closure. It has access to its outer scope variable `count` and `setCount`.
6969

7070
```jsx
7171
import React, { useState } from 'react';

0 commit comments

Comments
 (0)