Sobes.tech

When should you use useMemo? If an array and primitive are passed to a child component — where should useMemo be applied?

220

How can you optimize a scroll event handler that causes frequent re-renders? What is the difference between throttling and debounce?

214

You were given access to a private GitHub repository and asked to clone the project and run it. How would you approach this? What would you do first?

209

What can be stored in useRef instead of useState?

207

Have you had experience with a sluggish application due to unnecessary renders or other issues? How did you find and fix it?

190

A user enters a URL in the address bar and presses Enter. What critical moments might occur on their way — what could go wrong, what might slow down or cause a negative experience?

185

Is there experience working with command line and launching projects through the terminal?

176

What is the difference between useRef and useState?

172

Why can't you just pass count as a dependency in useEffect when using setInterval? What could go wrong?

170

What operating system do you work on?

162

How to type a function that accepts an object with a guaranteed 'id' field using generics?

158

Event Loop — whose implementation is it and where is it located?

157

How did you decide where it is critically necessary to cover with tests and where it is not?

157

What accesses are required before cloning a repository?

156

What methods can be used to unload parsing? Are you familiar with the async and defer attributes for scripts?

155

In what order will the following code execute? (Event Loop task with console.log, setTimeout, Promise.resolve, and queueMicrotask)

150

What moments can cause HTML parsing to pause or slow down?

148

There is a React component with a counter (useState), a button that increments the counter by 1, and a list of 100 items. What happens when the button is clicked?

145

What is the difference between a regular array and a Set? When would a Set be better than an array?

144
/2