All fields

“Server Components” in Information Technology

47 questions across 5 technologies.

Information Technology

47 questions in 5 technologies

#QuestionTechnologyTopicLevel
1Which popular React framework introduced strong built in support for Server Components? React › Server ComponentsReactServer ComponentsBeginner
2Why can't server components use hooks like useState or useEffect? Next.js › Server ComponentsNext.jsServer ComponentsBeginner
3What are the main benefits of using Server Components in a real React app? React › Server ComponentsReactServer ComponentsIntermediate
4What are the main performance benefits of using server components compared to rendering everything on the client? Next.js › Server ComponentsNext.jsServer ComponentsIntermediate
5How do Server Components and Client Components work together in the same app? React › Server ComponentsReactServer ComponentsAdvanced
6How do client components and server components work together in the same page? Next.js › Client Components & HydrationNext.jsClient Components & HydrationIntermediate
7How do styled components or other CSS in JS libraries work in the Next.js App Router, given the presence of server components? Next.js › Styling in Next.js (CSS Modules, Tailwind & Styled Components)Next.jsStyling in Next.js (CSS Modules, Tailwind & Styled Components)Intermediate
8What data types and values can be safely passed as props from a server component to a client component? Next.js › Server ComponentsNext.jsServer ComponentsAdvanced
9What is a server component in the Next.js App Router, and why is it the default? Next.js › Server ComponentsNext.jsServer ComponentsBeginner
10What is a React Server Component and how is it different from a regular component? React › Server ComponentsReactServer ComponentsIntermediate
11How do you decide whether a specific piece of a page should be a server component or a client component? Next.js › Server ComponentsNext.jsServer ComponentsIntermediate
12What is a Client Component and when do you need one instead of a Server Component? React › Server ComponentsReactServer ComponentsBeginner
13How does the concept of state management differ in Next.js compared to a purely client side React application, given the presence of server components? Next.js › State Management in Next.js AppsNext.jsState Management in Next.js AppsAdvanced
14What are the main components that make up the SQL Server architecture, and what role does each one play? SQL Server › SQL Server Architecture & EditionsSQL ServerSQL Server Architecture & EditionsBeginner
15How does SAM support nested applications and reusable components through the AWS Serverless Application Repository? AWS › AWS Serverless Application Model (SAM)AWSAWS Serverless Application Model (SAM)Advanced
16What is server side rendering in React, and why is Next.js commonly used for it? React › Server-Side Rendering (SSR) & Next.jsReactServer-Side Rendering (SSR) & Next.jsBeginner
17What is a server action in React and what problem does it solve? React › Server Actions & Data MutationsReactServer Actions & Data MutationsIntermediate
18How does data fetching work differently in a Next.js Server Component compared to fetching data in a regular client rendered React app? React › Server-Side Rendering (SSR) & Next.jsReactServer-Side Rendering (SSR) & Next.jsAdvanced
19How can you minimize the amount of JavaScript sent to the browser when using client components? Next.js › Client Components & HydrationNext.jsClient Components & HydrationAdvanced
20What is a simple real world example of using a server action for a common form, like a newsletter signup? React › Server Actions & Data MutationsReactServer Actions & Data MutationsBeginner
21How do Razor components (.razor files) combine markup and C# code, and what is the @code block? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
22How do you call a server action directly from a button click inside a client component, rather than through a form submission? Next.js › Server Actions & MutationsNext.jsServer Actions & MutationsIntermediate
23How does the useFormStatus hook help show loading feedback while a server action is running? React › Server Actions & Data MutationsReactServer Actions & Data MutationsAdvanced
24How does the useFormState hook, sometimes called useActionState, let you show validation errors returned from a server action? React › Server Actions & Data MutationsReactServer Actions & Data MutationsAdvanced
25How does dependency injection work in Blazor components, and what's the difference between @inject and constructor injection? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
26What is a client component in Next.js and when should you use one? Next.js › Client Components & HydrationNext.jsClient Components & HydrationBeginner
27What is hydration in the context of Next.js and React? Next.js › Client Components & HydrationNext.jsClient Components & HydrationBeginner
28What is the difference between the pages router and the newer app router in Next.js? React › Server-Side Rendering (SSR) & Next.jsReactServer-Side Rendering (SSR) & Next.jsIntermediate
29If you are migrating a page from getStaticProps to the App Router, how do the equivalent data fetching patterns compare? Next.js › Pages Router Data Fetching (getStaticProps, getServerSideProps & getStaticPaths)Next.jsPages Router Data Fetching (getStaticProps, getServerSideProps & getStaticPaths)Advanced
30What is static site generation and how is it different from server side rendering? React › Static Site Generation (SSG) & HydrationReactStatic Site Generation (SSG) & HydrationBeginner
31How do you read cookies in a Next.js server component? Next.js › Cookies & Session Management in Next.jsNext.jsCookies & Session Management in Next.jsBeginner
32How do you fetch data inside a server component in the App Router? Next.js › Data FetchingNext.jsData FetchingBeginner
33How do you call JavaScript from C# code in Blazor (JS interop), and when is it necessary? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
34How can you pass data fetched on the server down into a client component? Next.js › Data FetchingNext.jsData FetchingIntermediate
35How do you validate form data on the server before saving it, and show validation errors back to the user? Next.js › Form Handling & Validation in Next.jsNext.jsForm Handling & Validation in Next.jsIntermediate
36How would you test a server component that fetches data asynchronously? Next.js › Testing Next.js ApplicationsNext.jsTesting Next.js ApplicationsIntermediate
37How does the syntax of the PIVOT operator work, and what are its main components? SQL Server › Pivoting & Unpivoting DataSQL ServerPivoting & Unpivoting DataIntermediate
38How would you decide between static site generation and server side rendering for a specific page? React › Static Site Generation (SSG) & HydrationReactStatic Site Generation (SSG) & HydrationAdvanced
39What is Amazon SQS and why is it used to decouple application components? AWS › Amazon SQS (Simple Queue Service)AWSAmazon SQS (Simple Queue Service)Beginner
40What is client side routing in a React app, and how does React Router help with it? React › RoutingReactRoutingBeginner
41How do you fetch data inside a client component that needs to run in the browser? Next.js › Data FetchingNext.jsData FetchingBeginner
42How do you connect a database to a Next.js application? Next.js › Database Integration with Next.jsNext.jsDatabase Integration with Next.jsBeginner
43How would you handle a mutation, such as creating a new item, using React Query? React › Data Fetching (React Query & SWR)ReactData Fetching (React Query & SWR)Intermediate
44How would you programmatically navigate a user to a different page after they complete an action, such as submitting a form? React › RoutingReactRoutingIntermediate
45How would you protect a page in the App Router so only logged in users can access it? Next.js › Authentication & Authorization in Next.jsNext.jsAuthentication & Authorization in Next.jsIntermediate
46How can Suspense be used directly for data fetching, beyond just code splitting? React › Suspense & Concurrent RenderingReactSuspense & Concurrent RenderingAdvanced
47What is request deduplication in Next.js, and how does it help with data fetching? Next.js › Data FetchingNext.jsData FetchingAdvanced