Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Why I Don’t Use useEffect In My React Components

Автор: Web Dev Simplified

Загружено: 2022-11-29

Просмотров: 282563

Описание:

useEffect is one of the greatest additions to React. It is so much nicer than using component lifecycle methods, but it comes with one huge problem. The API for useEffect sucks. Not only that, but having tons of useEffects in your components makes your code harder to parse and understand. This is why I try to minimize if not remove all useEffects from my components. This makes my code easier to read/write and makes sure all the ugliness of useEffect is hidden away in custom hooks.


🌎 Find Me Here:

My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon:   / webdevsimplified  
Twitter:   / devsimplified  
Discord:   / discord  
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified


⏱️ Timestamps:

00:00 - Introduction
00:35 - Project overview
01:23 - Hiding useEffect in custom hooks
05:00 - How not to use useEffect
08:24 - How to do fetching


#useEffect #WDS #ReactJS

Why I Don’t Use useEffect In My React Components

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Speed Up Your React Apps With Code Splitting

Speed Up Your React Apps With Code Splitting

Why Signals Are Better Than React Hooks

Why Signals Are Better Than React Hooks

You are a Junior Dev if You Don’t Know These 18 TypeScript Utility Types

You are a Junior Dev if You Don’t Know These 18 TypeScript Utility Types

This is the Only Right Way to Write React clean-code - SOLID

This is the Only Right Way to Write React clean-code - SOLID

Let's Build Google Docs Clone with HTML5, NodeJs & MongoDB  ( Tailwind CSS, Rich Editor) - Part 1

Let's Build Google Docs Clone with HTML5, NodeJs & MongoDB ( Tailwind CSS, Rich Editor) - Part 1

Stop Making this Massive Authorization Mistake

Stop Making this Massive Authorization Mistake

How To Debug React Apps Like A Senior Developer

How To Debug React Apps Like A Senior Developer

3 Beginner React Mistakes That Can Ruin Your App

3 Beginner React Mistakes That Can Ruin Your App

Cloudflare in trouble

Cloudflare in trouble

Every React Concept Explained in 12 Minutes

Every React Concept Explained in 12 Minutes

All 17 React Best Practices (IMPORTANT!)

All 17 React Best Practices (IMPORTANT!)

Mastering React's useEffect

Mastering React's useEffect

СРОЧНО! КУЧЕР:

СРОЧНО! КУЧЕР: "Это просто позор". Что случилось на пресс-конференции Трампа и Зеленского

Why did they make this?

Why did they make this?

Ошибки в машинописном коде, которых следует избегать каждому начинающему разработчику | clean-code

Ошибки в машинописном коде, которых следует избегать каждому начинающему разработчику | clean-code

Появляется новый тип искусственного интеллекта, и он лучше, чем LLMS?

Появляется новый тип искусственного интеллекта, и он лучше, чем LLMS?

How To Maximize Performance In Your React Apps

How To Maximize Performance In Your React Apps

I Will Never Use Shadcn Form Components Again

I Will Never Use Shadcn Form Components Again

5 Pro-Level React Do's & Don'ts

5 Pro-Level React Do's & Don'ts

Why I avoid useEffect For API Calls and use React Query instead

Why I avoid useEffect For API Calls and use React Query instead

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]