---
title: "Discussion on \"Getting closure with React\" | Hashnode"
description: "Discussion on \"Getting closure with React\". What's a closure?\nClosures are like a backpack for functions. The backpack holds all of the values the function needs from its original environment, even if it's called in a different place. It gives functions access to all of its belongings no matte..."
url: "https://hashnode.com/posts/getting-closure-with-react/6443e2b368f6bf3a38f67983"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Getting closure with React](https://blog.reilly.dev/getting-closure-with-react?utm_source=hashnode&utm_medium=feed)

What's a closure? Closures are like a backpack for functions. The backpack holds all of the values the function needs from its original environment, even if it's called in a different place. It gives functions access to all of its belongings no matte...

Apr 22, 2023 · 2 min read · blog.reilly.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Reilly O'Donnell](https://hashnode.com/@Reilly)

@Reilly · Remote

  
[View profile](https://hashnode.com/@Reilly)

Senior Frontend Engineer - Sharing everything I know about React, React Native, TS, and building fast, scalable apps

If you've got any questions feel free to DM on Twitter @reillyjodonnell

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
