filmov
tv
Infinite Scroll in React | Full Tutorial
Показать описание
Infinite Scroll in React is a highly requested app feature that can be achieved in several ways. This React full tutorial provides two examples of creating an infinite scroll: 1) with React hooks and 2) with React Query.
⭐ Become a full-stack web dev with Zero To Mastery Courses:
Infinite Scroll & Infinite Query in React | Full Tutorial
(00:00) Intro
(00:35) Welcome
(00:46) Starter code and dependencies
(02:00) Axios API setup
(04:28) usePosts custom hook
(12:10) Example 1 component
(15:37) Post component and forwardRef
(18:01) Applying useRef
(19:05) Checking functionality
(19:59) Intersection Observer and useCallback
(24:21) Testing Infinite Scroll & Query
(25:54) Example 2: React Query setup
(27:40) Example 2 component
(29:25) useInfiniteQuery
(33:09) Update Example 2 with useInfiniteQuery
(36:08) Testing Example 2 functionality
📚 Tutorial References:
🔗 ES7 React JS Snippets Extension for VS Code:
🔗 React Dev Tools Extension for Chrome:
📚 General React References:
✅ Follow Me:
Was this React Infinite Scroll tutorial helpful? If so, please share. Let me know your thoughts in the comments.
#react #infinite #scroll
Комментарии