Q221. How to format date using React Intl?
The `injectIntl()` higher-order component will give you access to the `formatDate()` method via the props in your component. The method is used internally by instances of...
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).
The `injectIntl()` higher-order component will give you access to the `formatDate()` method via the props in your component. The method is used internally by instances of...
You can opt into the Edge Runtime to run API routes on the V8/edge environment. Add `export const runtime = "edge";` at the top of a route handler and use the Web `Reques...
You can use below tools or techniques for debugging javascript 1. Chrome Devtools 2. debugger statement 3. Good old console.log statement
Use `placeholder="blur"` with a `blurDataURL` or let Next.js generate it when importing static images. This shows a low-quality blurred preview while the image loads. ```...
Below are the list of pros and cons of promises over callbacks, **Pros:** 1. It avoids callback hell which is unreadable 2. Easy to write sequential asynchronous code wit...
In the App Router you can control revalidation when fetching data by passing the `next` option to `fetch`. For example, to revalidate every 10 seconds: ```js const res = ...
Attributes are defined on the HTML markup whereas properties are defined on the DOM. For example, the below HTML element has 2 attributes: `type` and `value`, ```javascri...
Only expose non-sensitive variables by prefixing them with `NEXT_PUBLIC_`. Keep secrets (API keys, DB credentials) server-only in `.env` and access them from server-side ...
The same-origin policy is a policy that prevents JavaScript from making requests across domain boundaries. An origin is defined as a combination of URI scheme, hostname, ...
For basic protection you can use an in-memory store (suitable for single-instance apps) or a shared store (Redis) for multiple instances. Example memory-based limiter usi...
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.