Sobes.tech

What will be the output of the following code? ```javascript console.log(1); setTimeout(() => { console.log(2); }, 0); Promise.resolve().then(() => { console.log(3); }); console.log(4); setTimeout(() => { Promise.resolve().then(() => { console.log(5); }); }, 0); ```

Middle
223

What is useEffectEvent and why is it needed?

Middle
189

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> ); };

Middle
178

What state managers were used? What is bad about Redux?

Middle
175

Why is the key attribute needed in React lists?

Middle
173

Tell us about the development process and Git-flow in your team. How is the code review process organized?

Middle
170

What are generics in TypeScript and why are they needed?

Middle
163

How to fix the stale closure problem in useCallback without adding dependencies to the dependency array?

Middle
162

Tell us about yourself and your most recent work experience.

Middle
155

What happens when a URL is entered into a browser? Describe the process from DNS query to page rendering.

Middle
152

What builders did you use, did you write your own configs?

Middle
144

What is a closure in JavaScript? Provide an example.

Middle
142

How would you approach solving performance issues in a React application if a user complains about lag?

Middle
142

import { useEffect, useLayoutEffect } from 'react'; export default function App() { console.log('1'); useEffect(() => { console.log('2'); }, []); useLayoutEffect(() => { console.log('3'); }, []); return <div>BCraft</div>; }

Middle
137

export const usePhoneMask = ({ mask, initialValue, maskPlaceholder, }: UsePhoneMaskParams): UsePhoneMaskReturn => { // code here };

Middle
131

import { useState, useEffect } from 'react'; export default function App() { console.log('1'); useEffect(() => { console.log('2'); }, []); return <Child />; } function Child() { console.log('3'); useEffect(() => { console.log('4'); }, []); return <div>Bcraft</div>; }

Middle
130

What is the Event Loop in JavaScript? In what order are tasks executed?

Middle
122

How to handle a situation where props have been updated, but the previous request has not yet finished? How to avoid race conditions?

Middle
118