React Posts

3 posts in this category

Memorization with React.memo
Memoization is the technique to let an expensive function return the cached value if all of its arguments remain unchanged. When a React component is wrapped inside a React.memo, the render result of…
React
How React Diffing Algorithm Works
If you are busy, here is the TL; DR: React Reconciliation is the tree diffing algorithm that React used to update your application’s DOM tree between renders. The existing algorithms do this in O(n^3)…
React
Render a component to any DOM node with React Portals
In React, you can mount a component into any DOM node instead of just the current parent component, with the help of ReactDOM.createPortal([content], [node] ). It’s very helpful when working with…
React