Click here to Skip to main content
15,887,297 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Progress and the death of cool code Pin
dandy7214-Feb-24 3:48
dandy7214-Feb-24 3:48 
RantReact and Material UI PinPopular
Marc Clifton7-Feb-24 3:35
mvaMarc Clifton7-Feb-24 3:35 
GeneralRe: React and Material UI Pin
Jeremy Falcon7-Feb-24 6:16
professionalJeremy Falcon7-Feb-24 6:16 
GeneralRe: React and Material UI Pin
Chris Maunder7-Feb-24 7:02
cofounderChris Maunder7-Feb-24 7:02 
GeneralRe: React and Material UI Pin
Jeremy Falcon7-Feb-24 9:13
professionalJeremy Falcon7-Feb-24 9:13 
GeneralRe: React and Material UI Pin
Marc Clifton7-Feb-24 8:08
mvaMarc Clifton7-Feb-24 8:08 
GeneralRe: React and Material UI Pin
Jeremy Falcon7-Feb-24 9:25
professionalJeremy Falcon7-Feb-24 9:25 
GeneralRe: React and Material UI Pin
Jeremy Falcon7-Feb-24 6:40
professionalJeremy Falcon7-Feb-24 6:40 
Marc Clifton wrote:
, but half the time I have to extend the "props" with React.PropsWithChildren, like WTF, why??? And communication between dissociated components requires a pubsub (so I've read and implemented), or between parent-child components which I still haven't figured out
Also, you don't have to do property chaining for everything. But, you should use props, as components are meant to be modular. Props shouldn't have to chain often though. That being said, there is a time and place to use shared data that's not global. For instance, Sharing State Between Components – React, but that's not a chain in the traditional sense.

And if by pubsub, you mean the older context api, I can agree that's a bit wonky, but nothing is stopping you from not using contexts or the useContexts hook. Or just roll your own global state object, it's not that hard. Keep in mind though, relying on this too much is not much better than global variables.

So, do better Marc.
Jeremy Falcon

GeneralRe: React and Material UI Pin
Jeremy Falcon7-Feb-24 6:46
professionalJeremy Falcon7-Feb-24 6:46 
GeneralRe: React and Material UI Pin
snorkie7-Feb-24 7:26
professionalsnorkie7-Feb-24 7:26 
GeneralRe: React and Material UI Pin
Jeremy Falcon7-Feb-24 9:03
professionalJeremy Falcon7-Feb-24 9:03 
GeneralRe: React and Material UI Pin
pkfox7-Feb-24 10:55
professionalpkfox7-Feb-24 10:55 
GeneralRe: React and Material UI Pin
jmaida7-Feb-24 17:54
jmaida7-Feb-24 17:54 
GeneralRe: React and Material UI Pin
0x01AA9-Feb-24 5:20
mve0x01AA9-Feb-24 5:20 
GeneralRe: React and Material UI Pin
GuyThiebaut7-Feb-24 21:47
professionalGuyThiebaut7-Feb-24 21:47 
GeneralRe: React and Material UI Pin
jochance8-Feb-24 4:50
jochance8-Feb-24 4:50 
GeneralWhy I don't use python Pin
honey the codewitch7-Feb-24 1:39
mvahoney the codewitch7-Feb-24 1:39 
QuestionRe: Why I don't use python Pin
CPallini7-Feb-24 1:54
mveCPallini7-Feb-24 1:54 
GeneralRe: Why I don't use python Pin
Richard Andrew x647-Feb-24 2:56
professionalRichard Andrew x647-Feb-24 2:56 
GeneralRe: Why I don't use python Pin
honey the codewitch7-Feb-24 4:20
mvahoney the codewitch7-Feb-24 4:20 
JokeRe: Why I don't use python Pin
Richard Deeming7-Feb-24 2:57
mveRichard Deeming7-Feb-24 2:57 
GeneralRe: Why I don't use python Pin
Pete O'Hanlon7-Feb-24 2:59
mvePete O'Hanlon7-Feb-24 2:59 
GeneralRe: Why I don't use python Pin
Richard Deeming7-Feb-24 3:18
mveRichard Deeming7-Feb-24 3:18 
GeneralRe: Why I don't use python Pin
Chris Maunder7-Feb-24 3:02
cofounderChris Maunder7-Feb-24 3:02 
GeneralRe: Why I don't use python Pin
honey the codewitch7-Feb-24 4:19
mvahoney the codewitch7-Feb-24 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.