The Facebook team has released an upcoming plan for React 18 features
The Facebook team has published the plan for React-18. There are many exciting features that are provided out of the box by React. These are not only enhancing the user experience but also making developers’ lives easier. So, here are the three main features which are going to be released this time.
Batching is when React groups multiple state updates into a single re-render for better performance.
For example, if you have two state updates inside of the same click event, React has always batched these into one…
How to write polyfill for bind
Polyfill is essentially back support of methods that our old browser doesn’t have. I will explain how to write a custom implementation of bind which will be supported everywhere. Here is the use-case of the original bind method: