Frontend
Что такое CSRF и как с ним бороться?
Как работают вместе useMemo, useCallback и React.memo? Почему важно оборачивать функции в useCallback при передаче в дочерний компонент, обёрнутый в React.memo?
Перечисли известные тебе принципы разработки ПО.
Для чего используется ключевое слово infer в TypeScript?
Что произойдёт, если вместо класса использовать обычный объект с теми же методами (без strict mode)?
During the month of May, crabs arrive on Delaware's beaches to lay eggs. Certain shorebirds depend on these eggs for food during their annual spring migration to their northern breeding grounds. Delaware's crab population has declined recently. This decline, however, poses no serious threat to the migrating shorebird populations: by remaining longer in Delaware, the birds will be able to eat enough crab eggs to allow them to complete their migration. Which of the following, if true, most seriously weakens the argument? - No other food available to the birds on Delaware's beaches is as nutritious and accessible as are crab eggs. - The decline in the number of crabs on Delaware's beaches is due to the harvesting of crabs by humans. - There are more crabs on Delaware's beaches than in any other area that the migrating birds pass through. - The crabs do not conceal their eggs. - The earlier in the season the shorebirds complete their migration, the more likely they are to breed successfully.
import { useState, useCallback } from 'react' const Component = () => { const [count, setCount] = useState(0); const handleClick = useCallback(() => { console.log(count); }, []); return ( <div> <div onClick={() => setCount((prev) => prev + 1)}>Count: {count}</div> <div onClick={handleClick}>Log</div> </div> ); };
Чем занимался с 2013 по 2020 год, как пришёл в разработку?
Что вернёт typeof null?
В чём разница между git fetch и git pull?
Расскажите о самой сложной и интересной задаче
Что такое Type Guard в TypeScript?
Скажи, пожалуйста, в чём отличие Map от объекта?
Расскажи про принципы ООП. Применимо ли ООП в JavaScript?
Часто сложный flex или grid layout работает отлично в Chrome, но в Safari, особенно на iOS и Mac, интерфейс бывает схлопывается по высоте или ломается скролл. Сталкивались ли с такой проблемой? Как отлаживали баги в Safari?
Расскажи про Feature Sliced Design (FSD): что это такое и как ты его применял на проекте?
Что такое React.memo? Когда применяется useCallback?
Почему использование индекса массива в качестве key может вызвать проблемы?
Какие аргументы принимает React.memo помимо самого компонента?
Почему используется Array.prototype.slice.call(arguments)? Как работают call и apply?