1 follower
I read, experience and write stuffs.
There's a way to update your React state more efficiently using the prevState with a callback in setState function. const [name, setName] =...
Redux is a state management library that helps us to solve the problem of state usage from many places in app and passing props to a deep nesting...
Currying in Javascript It can be understood as function caching. Consider the snippet below: // utils.js const submitForm = (formName: string) =>...
I read about lazy init lately when enrolled in FrontendMaster course from Brian Holt. It is said that lazy init is used when you want to perform some...
React encourages people to use special prop children for the container which has unknown children components. For example, Sidebar or Dialog. And...
There are 2 common ways to solve Props drilling in React: use ContextAPI/Redux and use React Composition. In this article i will go through the...