shohanur rahmanshohan777.hashnode.dev·Nov 16, 2024Why React uses Pure Components?React enforces using pure components. To ensure this React has ‘StrictMode’ on in the development mode/environment. So that any impure component can be identified. React Doc says, “React’s rendering process must always be pure. Components should only...1 likeReact
Sourav-nathtechwala.hashnode.dev·Jul 27, 2023My learning about Pure Components in React.jsWhat 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...React
Abhiraj Ghoshabhirajblogs.hashnode.dev·Mar 13, 2023Pure vs Impure Component in ReactIn React, components are the building blocks of user interfaces. They are like functions that receive inputs (props) and return a React element (which describes what should be rendered to the screen). There are two types of components in React: pure ...2 likes·2.6K readsReact
Blessing Ene Anyebekwennb.hashnode.dev·Oct 31, 2022When not to use PureComponentI find React and its community to be very cool; they look out for multiple ways to provide ease of use of the framework for small and large projects. Some methods and processes that might adversely cause rerenders and lags have diverse ways to check,...28 likes·274 readsPure Component