Загрузка...

React Interview Questions || Part 2

1: useState is a React Hook used to store and manage dynamic data inside functional components.
It allows React components to:
-save values
-update values
-automatically re-render UI when data changes

Whenever state changes using the setter function, React updates the component UI.

2: useEffect is a React Hook used to perform side effects in functional components.
It runs code after component renders.

Mostly used for:
-API calls
-Timers
-Event listeners
-Data fetching
-Updating DOM

3: map() is a JavaScript array method used in React to render lists dynamically.

It loops through an array and converts each item into JSX elements.
React uses map() to display dynamic UI from arrays.

4: filter() is a JavaScript array method used to create a new array containing only matching elements.

Видео React Interview Questions || Part 2 канала Interview Crack
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять