React : Keeping Components Pure
Pure functions in JavaScript perform only calculations without changing any objects or variables. React components should also be pure, meaning they consistently produce the same output given the same inputs. This approach helps to manage code better and avoid unpredictable behavior.