Skip to main content

Posts Tagged ‘front-end’

Keyboard with search bar

useNavigate: Navigation React Router v6

In React͏ development, smooth moving between pages is vital for a seamless͏ user experience. React Router v6 brings out the useNavigate hook for advanced navigation, simplifying navigation logic͏ in functional elements. This ͏blog post will delve into the useNavigate hook, its features, functions, and benefits in React Router v6. Introducing useN͏avigate In React Router͏ v6, […]

Optimizely Configured Commerce Best Practices

useFormStatus FormControl in Next.js

In Next JS, developers prefer most of their code to remain on the server side. However, it is quite tricky to accomplish such feats when you are working with forms. Components that require inputs from the user and thus must be client components to perform user operations like button clicks or text inputs. There useFormStatus […]

Istock 1445557229

React Navigation: A Rollercoaster Ride with useHistory

React applications often require navigation between different components and pages. The useHistory hook, provided by React Router, simplifies navigation by providing access to the browser’s history object. In this blog, we’ll explore the useHistory hook, understand its implementation, and see practical examples of how it enhances navigation in React applications. Understanding useHistory The useHistory hook […]

Map with pins

Finding Your Way in React: Exploring useLocation and useParams.

React provides powerful tools for creating dynamic web apps. The two most important hooks for dealing with routing and URLs are useLocation and useParams. In this blog post, we’ll explore these hooks’ functionality, discuss their application with examples, and show you how to combine them to give your React projects smooth navigation. Understanding useLocation The […]

Learning from collaboration

The Power Of Objects In JavaScript: Part 2

Jump into the fascinating world of JavaScript objects with us! We’re going to explore cool methods and tricks that can make your coding skills even better. If you’re new to objects in JavaScript, no stress! Our guide, ” The Power of Objects in Javascript: Part 1” is there to help. It breaks down both the […]

Integrating LinkedIn and Marketo

The Power of Objects in JavaScript: Part 1

Objects are an essential building block for data manipulation in JavaScript, the language that runs the internet. Developers may easily organize and arrange data by using JavaScript objects, which are versatile containers. Together, we will unravel objects and examine many essential techniques that simplify our interactions with them. Understanding Objects in JavaScript An object in […]

Istock 1488521147

Internationalization (I18n) Implementation in React

Internationalization (I18n) is a crucial aspect of building web applications that cater to a global audience. It involves adapting your application to different languages and regions seamlessly. In this blog, we will explore the implementation of I18n in a React app, ensuring a smooth user experience for diverse audiences. Why Internationalization? Before delving into the […]

Magnifying glass, calculator and charts on paper

Type-checking Made Easy: Exploring PropTypes in React

In React development, ensuring proper data validation is crucial for building robust and reliable applications. One powerful tool for type-checking is PropTypes, a built-in feature in React that enables developers to validate the props passed to components. In this blog, we will explore the concept of type-checking with PropTypes, understand its benefits, and provide brief […]

B2B Commerce Strategy

Understanding the Context API in React: Simplifying State Management

Introduction The Context API in React allows components to share data with each other, even if they are not directly related. It helps avoid the problem of passing data through many components by letting components access shared data directly. It helps in preventing the prop drilling problem. Consider the diagram to represent a chain of […]

Happy Girl Unpacking Clothes After Online Shopping

Unboxing the Box-Sizing Property in CSS

Box-sizing property in CSS Box-sizing is a CSS property that helps us set the height and width of an element. Sometimes, when we set the height and width of an element, it doesn’t work as expected. In such situations, we can use the box-sizing property to adjust the element’s size. Box-model: The Box-model is a […]

Learning from collaboration

What’s New with Sitecore’s Bootstrap 5 Grid

With Sitecore 10.2, Bootstrap 5 was added as a grid system option. Previous options were Bootstrap 3, Bootstrap 4, Foundation, and Grid960. While Bootstrap 4 was the default prior to 10.2, Sitecore Bootstrap 5 is the new default grid system. Here’s what’s new with Bootstrap 5.  Speed One of the most exciting things about Bootstrap […]

Cardmapr N8pnhrcr73o Unsplash

Implementing Custom Play/Pause Button for Embedded YouTube Videos Using IFrame Player API

Recently, I worked on one bug where GTM tracking was breaking for an embedded YouTube video with a custom play button. The video played perfectly fine on the click of the play button, but it was not getting tracked by GTM. I didn’t find anything wrong in the code, so I researched and found that […]

Load More