From 2aa985efecbc2ddc860647fdc2d56defa5c97280 Mon Sep 17 00:00:00 2001 From: Danielle Ford Date: Sat, 29 Nov 2025 16:34:50 -0700 Subject: [PATCH 1/2] Update en-US.mdx typo fix --- .../what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx b/questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx index 420bcc4..c7cd7ec 100644 --- a/questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx +++ b/questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx @@ -65,7 +65,7 @@ console.log(counter()); // Outputs: 2 ## Closures in React -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` +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` ```jsx import React, { useState } from 'react'; From d9e4fb2a0f27464b331f134a8adf240601c0f90f Mon Sep 17 00:00:00 2001 From: Danielle Ford Date: Sat, 29 Nov 2025 16:42:21 -0700 Subject: [PATCH 2/2] Update en-US.mdx add period --- .../what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx b/questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx index c7cd7ec..47824d6 100644 --- a/questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx +++ b/questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx @@ -65,7 +65,7 @@ console.log(counter()); // Outputs: 2 ## Closures in React -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` +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`. ```jsx import React, { useState } from 'react';