Q361. What is the fetch API in Next.js App Router?
In the Next.js App Router, you can use the `fetch` API to make HTTP requests to external APIs or your own API routes. The `fetch` function is available globally in both s...
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).
In the Next.js App Router, you can use the `fetch` API to make HTTP requests to external APIs or your own API routes. The `fetch` function is available globally in both s...
You can use the `test()` method of regular expression in order to search a string for a pattern, and return true or false depending on the result. ```javascript var patte...
Route groups allow you to organize routes without affecting the URL structure. You create them by wrapping folder names in parentheses `()`. ``` app/ ├── (marketing)/ │ ├...
The purpose of exec method is similar to test method but it executes a search for a match in a specified string and returns a result array, or null instead of returning t...
Class components can be restricted from re-rendering when their input props are the same using **PureComponent or shouldComponentUpdate**. Now you can do the same with fu...
Parallel routes allow you to render multiple pages simultaneously in the same layout. They are defined using slots with the `@` convention. ``` app/ ├── layout.js ├── pag...
You can change inline style or classname of a HTML element using javascript DOM-manipulation 1. **Using style property:** You can modify inline style using style property...
Intercepting routes allow you to load a route from another part of your application while keeping the context of the current page, similar to modals. ``` app/ ├── feed/ │...
The output is going to be `33`. Since `1` and `2` are numeric values, the result of the first two digits is going to be a numeric value `3`. The next digit is a string ty...
The `loading.js` file creates loading UI that shows instantly while route segments are loading. It automatically wraps the page and its children in a React Suspense bound...
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.