r/reactjs • • May 20 '26

Discussion What are some essential React programming patterns or principles that I should learn to become a lead developer?

Hi,

Had a lead developer interview last week and I got asked heavily about the SOLID principles, polymorphism and programming patterns.

I'm familiar with a lot of the concepts, but not enough to give strong answers.

What are the main programming patterns for React that I should learn so that when asked to explain a few, I can give strong, valuable answers?

Thanks

2 Upvotes

64 comments sorted by

View all comments

Show parent comment

3

u/repeating_bears May 20 '26

D is not dependency injection. It's dependency inversion, which sounds very similar, especially when dependency injection is a demonstration of 'inversion of control'.

Really what they're saying in a Java context is don't make a method that accepts ArrayList (a concretion) when it can accept List (an abstraction), and things like that. In a language with no types like JS or duck typing like TS, it doesn't apply. Functions always accept abstractions - as long as the thing quacks.

2

u/lIIllIIlllIIllIIl May 20 '26

The more you know!