© 2023 Hashnode
#reacthooks
I had been working professionally with React for a year now, and while I have been able to build functional and feature-rich applications, I realized that I didn't have a solid understanding of how Re…
When I was interviewing candidates for the entry-level react developer position. I was thinking of asking basic questions like “what is this particular thing in react.js or why do we use this particul…
The useReducer Hook notes: const [state, dispatch] = useReducer(reducer, initialArg, init?) Below lets understands the parameters, returns & Limitations: Parameters: reducer: The reducer function contains the logic which takes the state an…
why it is used? Library for JS ReactDOM.render(what we what to render, where ?) ⟶ used in React17 ReactDOM.createRoot(document.getElementById("root")).render(navbar) ⟶ used in React18 Another way in R…
Ever wondered why some complex web applications are slow in rendering their components? There can be a few reasons for this, of which, one major reason is due to unnecessary renders of functions thus …
When getting data from a large dataset (an API or a database), developers frequently struggle with presenting it to the user while keeping in mind specific requirements, such as a short load time and …
Problem I was trying to implement the useNavigate() hook in my React application, but I kept getting an error on my console. After a bit of digging, I discovered that the issue was with the way I had…
What is React Native? A: React Native is an open-source framework that enables developers to build native mobile applications using JavaScript and React. What are the advantages of using React Native? A: Cross-platform compatibility, perfo…
The useState Hook returns the state value and the setter function that will allow us to modify the state value returned. Below is the syntax for useState Hook: const [state, setState] = useState(initialState); // this is a Javascript destru…
While we move into the Web 3.0 world, there are a lot of component changes inside the application that can be seen, to fully adapt to the decentralization infrastructure. We have already seen heavy use of Blockchains to store and register t…