Reducing the amount of code you need to write, and removing unnecessary re-renders are some of the primary goals of React Hook Form. react-hook-form.com
A JavaScript library built on top of Facebook's React library, which aims to bring a native desktop experience to the web, featuring many macOS Sierra and Windows 10 components.
Draft.js fits seamlessly into React applications, abstracting away the details of rendering, selection, and input behavior with a familiar declarative API.
Supercharge your React App Performance by 10X with these handy tricks.
10 ultimate hacks every Web Developer should know about.
THREAD 🧵 :
1. useState Lazy Initialization With Function
There are times when we need to set the initial value of the state from some variable or from a function that returns a value.
Since our function is in the body, every time a re-render happens, this function is getting called even if its value is not required (we only need it during the initial render).
+ Use the above-mentioned hack to boost performance