Sobes.tech

Task: implement the function calculateStats to compute the sum and average of an array of numbers. Consider the case with an empty array.

249

There are three nested components: server (div), client (div), server (button). What HTML will come from Next.js before hydration?

207

Tell about your development experience starting from your last job.

203

How to prevent flickering of the interface caused by useEffect?

169

What goes into the microtask queue? Name browser Observer APIs besides MutationObserver.

168

What is a server component and a client component in Next.js? How is a client component declared? Is it possible to embed a server component into a client component and vice versa?

167

//Implement the function // promiseAllLimit(tasks: Array<() => Promise<unknown>>, limit: number): Promise<any[]>, //which executes promises with a limit on the maximum number of concurrent requests.

156

Task: implement a function to group users by city (groupByCity).

154

You used FSD — who designed the domain areas? Were they just new folder names or a deeper architectural approach? What was inside the entities folder?

147

How do you solve cross-browser compatibility issues? How can you tell in advance if a CSS property will work in the target browsers?

146

//Implement a debounce function: delay the execution of a function until a specified time has passed //example const debouncedSearch = debounce((query) => { console.log('Searching for:', query); }, 300); debouncedSearch('a'); debouncedSearch('ab'); debouncedSearch('abc'); // Will only execute once with 'abc' after 300ms of the last call

145

When you connect an Observer, how do you disable it when it becomes unnecessary?

143

What is your experience with CSS, layout — did you start directly with React or was there a foundation in pure CSS/HTML?

135

How did you connect a separate repository with shared components to another project — as a package or otherwise?

134

What rendering strategies exist? Tell me about CSR, SSR, SSG.

132

What is the difference between Set and a regular array? What is the complexity of the has() operation in Set?

129