🚀 React like a PRO with Singleton Design Pattern 🔁

  Рет қаралды 585

coding with LuLu

coding with LuLu

Күн бұрын

Пікірлер: 5
@NoobieLearner
@NoobieLearner Ай бұрын
What is the necessary of making getter setter and classes when we can directly condition render component through the prop, I felt puzzled there
@codingwithlulu
@codingwithlulu 29 күн бұрын
A Singleton in React is useful when you want just one instance of something, like an authentication service or a connection, across the whole app. Think of it as a "one and only" object that's shared everywhere to avoid duplicates. You'd use it when: Global services like login or API need to be consistent everywhere. Expensive stuff (like a WebSocket) shouldn’t be created more than once. Shared state is needed across different parts of your app without duplicating logic. But in most cases, React’s own tools-like useContext or libraries like Redux-are enough, so only use Singleton if you really need that "one-instance-only" guarantee!
@rofayel
@rofayel Ай бұрын
I dunno why im watching this video, I have exam tomorrow and i'm not even learning react
@sexy_audios
@sexy_audios Ай бұрын
🤣🤣
@codingwithlulu
@codingwithlulu Ай бұрын
Hope you enjoyed it and hope your exam went well too 😀
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 298 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 28 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 133 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
GIMP 3.0 RC1 - RELEASE CANDIDATE ONE
16:44
Vero Eroe Academy
Рет қаралды 52
Write Clean Code Like A Senior Dev: SOLID Principles In React.js
9:38
Easily Fetch ALL Paginated API Data in React Like a Pro! 🚀
13:17
coding with LuLu
Рет қаралды 262
Un-Suck Your React Components - Composable & Compound Components
15:47
Best React Design Patterns for Beginners; Builder Design Pattern
12:36
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 98 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 96 М.
The Vim Experience
45:19
Bog
Рет қаралды 137 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 28 МЛН