July 13, 2022 — Sometimes, solutions to some of the problems are much simpler than we make them to be. Working with React.js is one of those things where you may complicate things unnecessarily when you don’t know the right approach.
July 7, 2022 — Oftentimes, when working with UIs, you may come across scenarios where you need to render something based on the user-entered input.
June 28, 2022 — The useEffect hook in React.js is the one that you would be using to run side effects for a particular component.
June 21, 2022 — When working with states in React.js, there comes a time when you might need to differentiate between the current and previous “state” of a state.
May 3, 2022 — Toggles are an integral part of a web application. Toggles usually have two states. Most of the time these would be of type boolean.
April 27, 2022 — When you’re working on the frontend side of the things of a website, one of the most common tasks is to render lists from arrays/objects.
March 10, 2022 — Working on one of the apps which built on top of React.js, I stumbled upon a scenario where I needed to use the value of a state variable immediately after it’s updated.
March 7, 2022 — When working with React.js components, you might end up in a situation where you would be using an event handler more than once.
February 21, 2022 — If you have ever worked with lists in React, you might have rendered it using the Array.prototype.map() method like so.
September 28, 2021 — While working with React.js components, there are two ways using which you can retrieve/access the component props.
August 20, 2021 — No matter what field your business is in, having a mobile application to improve your customer’s engagement and experience helps it immensely.
August 18, 2021 — Here’s a little tip for your React.js projects that can dramatically improve your developer experience.
June 15, 2021 — The latest major version of React.js, 18, is around the corner and it will include out-of-the-box improvements (like automatic batching), new APIs (like startTransition), and a new streaming server renderer with built-in support for
May 17, 2021 — When working on enterprise applications, it’s often the use-case to fetch data from the server from the frontend. This involves fetching data asynchronously and rendering it to the frontend when the data is fetched successfully or render the error message if something goes wrong during this entire process.
March 28, 2021 — While working on an application which is built using React.js, I stumbled upon a use-case where I needed to set a default value for a specific component prop. Let’s check the following example to understand how I approached this problem.
May 6, 2020 — The usual way of using a React element is to first import it and then utilize it inside of an another React component like so.
December 22, 2019 — When using React component using ES6 classes, you must have encountered this phenomenon where you have to explicitly bind the class function and then pass it to the even such as
onClick. For instance, take the following example.