Q121. How do you enable custom fonts in Next.js?
By using the next/font package to optimize and load custom fonts. ```js import { Inter } from "next/font/google"; const inter = Inter({ subsets: ["latin"] }); export defa...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (780 available).
By using the next/font package to optimize and load custom fonts. ```js import { Inter } from "next/font/google"; const inter = Inter({ subsets: ["latin"] }); export defa...
A **Promise** is a JavaScript object that represents the eventual completion (or failure) of an asynchronous operation and its resulting value. It acts as a placeholder f...
By adding a custom webpack configuration in next.config.js. ```js module.exports = { webpack: ( config, { buildId, dev, isServer, defaultLoaders, webpack } ) => { // Note...
Promises are **used to handle asynchronous operations**, especially in languages like JavaScript, which often work with non-blocking operations such as network requests, ...
If you are rendering your component using JSX, the name of that component has to begin with a capital letter otherwise React will throw an error as an unrecognized tag. T...
By default, Next.js uses the high-performance Rust-based **SWC compiler**, which is up to 17x faster than Babel. However, if your project relies on legacy custom Babel pl...
Promises have three states: 1. **Pending:** This is an initial state of the Promise before an operation begins 2. **Fulfilled:** This state indicates that the specified o...
**Note:** This question references React v16, which is outdated. The information below applies to React 16+, including current versions (React 18/19). Yes. Starting with ...
**`next-env.d.ts`** is an auto-generated TypeScript declaration file placed at the root of a Next.js project. ### What It Does: It contains TypeScript reference directive...
A callback function is a function passed into another function as an argument. This function is invoked inside the outer function to complete an action. Let's take a simp...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.