Learn Before
Concept
Purity: Components as formulas in React Js
In computer science, especially in functional programming, there are functions called 'pure functions'. These functions have two properties:
- They don't modify variables that existed before they were called.
- They always return the same output from the same inputs.
React follows the same pattern, in that with the same props, we need to return the same JSX.
0
1
Updated 2023-04-14
Tags
JavaScript Programming Language
Object-Oriented Programming
Programming Language Paradigms
General programming languages
Computing Sciences