PureComponents
PureComponents is a term used in software design to describe components that render output solely from their input properties and internal state, without relying on or mutating external state. A pure component is typically deterministic: given the same inputs, it produces the same output. This purity facilitates reasoning about code, simplifies testing, and supports predictable behavior in complex systems.
In user interface development, pure components are often optimized to avoid unnecessary work. Frameworks implement this
Advantages of pure components include potential performance improvements in large component trees, easier unit testing due
PureComponents are widely applicable in UI layers and other domains where components or modules produce outputs
See also: pure function, immutability, React.PureComponent, memoization.