Sobes.tech

Tell me about useReducer — what is its purpose and how does it work?

306

Tell me about Next.js: main advantages, rendering types, server components, and other features.

205

What is the difference between display: none and visibility: hidden?

202

Tell about useMemo, useCallback, and their interaction with React.memo. Features of interaction.

175

What is the difference between box-sizing: content-box and border-box?

169

Explain the difference between useEffect and useLayoutEffect, and where useLayoutEffect is useful?

169

How long does each function take to execute? ```javascript /** How long does each function take to execute */ function pause500ms () { return new Promise(res => setTimeout(res, 500)); } (async function test1 () { pause500ms(); pause500ms(); })(); (async function test2 () { await pause500ms(); await pause500ms(); })(); (async function test3 () { await Promise.all([pause500ms(), pause500ms()]); })(); (async function test4 () { await Promise.all([await pause500ms(), await pause500ms()]); })(); ```

162

What is React Portal, how does it work, and what are its features?

151

How to make a component with 5 props ignore changes in three of them and re-render only when two change?

143