Logo
TGCATALOG
Catalog Collections Blog
Frontend | Interview questions

Frontend | Interview questions

Interview questions frontend randomly.

No ratings
566
29.10.2026
566
29.10.2026
No ratings
566
29.10.2026
Safe redirect via bot
О канале

Interview questions frontend randomly.

Подписчиков 17,451
Тематика Technology
Язык English

We also recommend

Kekaton AI | Voiceover and voice clone
Kekaton AI | Voiceover and voice clone
Bot

AI bot for text-to-speech and voice cloning in Telegram. Create audio using neural network quickly and easily.

Description

Collection of frontend questions: JavaScript, frameworks, performance, accessibility. Detailed answers will help confidently pass interviews.

Latest posts

Frontend | Interview questions
Frontend | Interview questions
🔒Открыть пост
и посмотреть медиа
🤔 Зачем нужен ref? В React ref (сокращение от reference) используется для доступа к DOM-элементам или компонентам напрямую. Он позволяет взаимодействовать с элементами, которые были созданы в процессе рендеринга, предоставляя механизм для манипуляции с ними, получения их размеров, положения или вызова методов у компонент. Это особенно полезно в ситуациях, когда необходимо выполнить операции, которые не могут быть выполнены исключительно через декларативный подход React. 🚩Основные случаи использования `ref` Доступ к DOM-элементам: Использование в сторонних библиотеках: Сохранение состояния вне дерева компонентов: 🚩Примеры использования `ref` Доступ к DOM-элементам Установка фокуса на элемент import React, { useRef, useEffect } from 'react'; function TextInputWithFocusButton() { const inputEl = useRef(null); const onButtonClick = () => { // Установить фокус на текстовое поле inputEl.current.focus(); }; return ( Установить фокус ); } export default TextInputWithFocusButton; Получение размеров элемента Измерение элемента: import React, { useRef, useEffect, useState } from 'react'; function MeasureDiv() { const divRef = useRef(null); const [dimensions, setDimensions] = useState({ width: 0, height: 0 }); useEffect(() => { if (divRef.current) { const { width, height } = divRef.current.getBoundingClientRect(); setDimensions({ width, height }); } }, []); return ( Измеряемый элемент Ширина: {dimensions.width}px, Высота: {dimensions.height}px ); } export default MeasureDiv; Использование в классовых компонентах Доступ к методам компонента: import React, { Component } from 'react'; class CustomComponent extends Component { customMethod() { console.log('Метод компонента вызван'); } render() { return Custom Component ; } } class ParentComponent extends Component { constructor(props) { super(props); this.customComponentRef = React.createRef(); } handleClick = () => { this.customComponentRef.current.customMethod(); }; render() { return ( Вызвать метод компонента ); } } export default ParentComponent; 🚩Важно помнить Прямое управление DOM может нарушить декларативный подход React, поэтому его следует использовать только тогда, когда это действительно необходимо. Когда необходимо использовать сторонние библиотеки, которые требуют прямого доступа к DOM-элементам. Состояние приложения и его логика должны по возможности управляться через состояния и пропсы React. ref следует использовать для случаев, которые не могут быть решены этим способом. Ставь 👍 и забирай 📚 Базу знаний
Frontend | Interview questions
FAQ

Open Frontend | Interview questions in Telegram and press the Start button. No separate registration is required.

Yes. The service is designed to be straightforward: open the resource, follow the on-screen instructions and start using it.

No. You can use Frontend | Interview questions directly in Telegram unless the resource description says otherwise.

Access depends on the resource. Check the current information in Telegram after opening Frontend | Interview questions.

The exact features depend on the resource. Open Frontend | Interview questions to see its current functions, content and access conditions.
Subscriber dynamics
+-1.2% last 30 days
Current
17,451
Month ago
17,655
Average growth
+-7 / day
Updated
2 days ago

Reviews for channel Frontend | Interview questions

Log in to leave a review

Only registered users can share their opinion.

No reviews yet

Be the first to share your impression of this resource!

Similar resources

Loading
Switch to Light Theme
Home Catalog Collections Blog Login