Sobes.tech

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

Have you had experience with memory leaks? How did you find and fix them?

144

What happens to the DOM tree when the state is updated in React?

144

What are the goals of using the useRef hook?

142

There is a component with a counter that should increase every second using setInterval, but it doesn't work correctly. How to fix it?

136

Tell us about yourself, your main experience, achievements, and key tasks you have performed.

134

Do you have experience using Set and Map? In what cases did you choose them?

134

Is it necessary to use useMemo for primitive data types when passing to a child component?

132

When running a project, errors occur — the Node.js version does not match. How would you handle this problem?

129

What is the complexity of searching for an element in a Set compared to an array?

128

There is a heavy CSS bundle of 2 megabytes. What can be done with it to unload rendering and make page building smooth?

123

How much time did it take to write tests compared to regular work?

119

How would you type a function in TypeScript that takes an array of any data types and returns the type of the first element?

119

How did you work with AI when writing tests?

118

Why does useCallback help avoid unnecessary re-renders when passing a function to a child component?

104

How does React.memo check if it needs to update a component? How does it compare props?

95
/2