---
title: "Discussion on \"My learning about Pure Components in React.js\" | Hashnode"
description: "Discussion on \"My learning about Pure Components in React.js\". What is a pure function?\nPure functions only perform a calculation and nothing more.\nA pure function follows these rules:\n\nIt never changes any variable or object that existed before the function was called.\n For eg.\n\n\nlet variableDeclared = 0;\n\ncons..."
url: "https://hashnode.com/posts/my-learning-about-pure-components-in-reactjs/64c284306bddda2fb07a4d21"
---

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

Discussion

# [My learning about Pure Components in React.js](https://techwala.hashnode.dev/my-learning-about-pure-components-in-reactjs?utm_source=hashnode&utm_medium=feed)

What is a pure function? Pure functions only perform a calculation and nothing more. A pure function follows these rules: It never changes any variable or object that existed before the function was called. For eg. let variableDeclared = 0; cons...

Jul 27, 2023 · 2 min read · techwala.hashnode.dev  
Updated Jul 29, 2023  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#pure-functions](https://hashnode.com/tag/pure-functions)
-   [#pure-component](https://hashnode.com/tag/pure-component)

## Written by

[Sourav-nath](https://hashnode.com/@Techwala)

@Techwala

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

Let's learn!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
