Loading video...

Video Failed to Load

Go Home

Composition is all you need. Watch the full video below.

315,745 views • 1 year ago •via X (Twitter)

42 Comments

Smakosh's profile picture
Smakosh1 year ago

Great talk! I was just trying to explain this to my co-worker and this would help clarify exactly that

Fernando Rojo's profile picture
Fernando Rojo1 year ago

🫡

Charlie Lamb's profile picture
Charlie Lamb11 months ago

Unreal talk btw

Fernando Rojo's profile picture
Fernando Rojo11 months ago

thank you!

Juan's profile picture
Juan1 year ago

Awesome talk! Radix like composition makes it so much more easy to mantain codebases it just bit too hard to think about and hard for amending past mistakes

Fernando Rojo's profile picture
Fernando Rojo1 year ago

I’ve actually found composition to be great for refactoring impossible-to-fix code. Just copy all the logic at the top of the component into a context provider. Then, you can easily start turn your massive JSX return statement into smaller components.

Juan's profile picture
Juan1 year ago

Mmmm I like this have not thought about it this way, I usually just try to have the logic as further away as possible and deal with these as “molecules and atoms” and keep their logic simple, like input value transforms and stuff like that

MMIK's profile picture
MMIK7 months ago

For anyone else looking for this on YouTube:

Chandrabhan Singh's profile picture
Chandrabhan Singh11 months ago

Amazing eye opening talk dude, completely blown up my mind. I can't tell how much I've struggled with all those props & state management issues. Thanks a LOT Wanna ask, if you can share that actual code, link or suggest/recommend such a code for us to better understand it?

Fernando Rojo's profile picture
Fernando Rojo11 months ago

thanks! I’ve been getting tons of requests for this, I’ll try to put together some more real-life examples soon

Niraj Rajgor's profile picture
Niraj Rajgor1 year ago

Very impressive talk and nicely explained !!

Manu's profile picture
Manu11 months ago

Muy buena charla! Que poco usado está este patrón.

Fernando Rojo's profile picture
Fernando Rojo11 months ago

gracias!

Nick Gattuso's profile picture
Nick Gattuso1 year ago

this is awesome! sharing this with my design team so they can understand all the nuances behind something as simple and the send message component..

Ashwin V C's profile picture
Ashwin V C1 year ago

What did you use for building the slides for this talk @fernandorojo ? They look crisp and clean with animations too. Would love to use something similar at work

A void's profile picture
A void1 year ago

This was great

Jeffrey (Computer Operator)'s profile picture
Jeffrey (Computer Operator)1 year ago

Sharing with the team. Brilliant articulation of _such_ an important frontend eng concept.

Raymond's profile picture
Raymond7 months ago

I am usually struggling myself when comparing/thinking this with Smart-Dumb component pattern, with this, the child component has access to the context and visible to everything it has in the context instead of what it actually needs. We just refactor our most complex screen into this pattern and it’s so much easier to read and understand. The only “downside” I think is now when looking at 1st glance, we now don’t know which things that this component needs or rely one, because now everything were shared in the context and everyone can use.

Toheeb Olayemi's profile picture
Toheeb Olayemi1 year ago

Great talk on composition! Makes complex UIs simpler

Austin Schneider's profile picture
Austin Schneider1 year ago

👏🏽 dependency injection is one of the greatest fundamental patterns

Daniel Noworyta's profile picture
Daniel Noworyta1 year ago

Good piece of content here. Thanks! 👋

Jeremy Berman's profile picture
Jeremy Berman1 year ago

@connorferoce 🐐

Javed's profile picture
Javed1 year ago

Amazing pattern, got to know a whole new level of doing things

Paweł Mikołajczyk's profile picture
Paweł Mikołajczyk1 year ago

@grabbou Absolutely fantastic example with the Slack's composer component. Amazing work!

longbo's profile picture
longbo4 months ago

amazing talk!

Fernando Rojo's profile picture
Fernando Rojo4 months ago

Thanks!

dylan's profile picture
dylan1 year ago

This is so good, I can’t count how many times in the past I’ve written/been in React codebases with all those props and ternary operators from the bad example 😅

Chirag Aggarwal's profile picture
Chirag Aggarwal4 months ago

this was so informative, even as a backend engineer 😅

Andrew Gadzik ▲'s profile picture
Andrew Gadzik ▲1 year ago

Amazing talk Nando!

GAVRIEL.TECH's profile picture
GAVRIEL.TECH11 months ago

Good stuff. I ran into similar complex composition issues that you mentioned and started using React Recoil for states, and it worked beautifully. After seeing this, I'll try more interesting composition techniques in the future.

Himanshu Kumar's profile picture
Himanshu Kumar1 year ago

Interesting. A compelling composition can elevate even simple subjects. What makes a composition truly "work"?

Marc Hatton's profile picture
Marc Hatton7 months ago

@grok full transcript pls

aneudyac✝️'s profile picture
aneudyac✝️7 months ago

This talk is absolute gold

Rolf Bjaanes's profile picture
Rolf Bjaanes1 year ago

This was an amazing talk in every possible way. Thank you! You mentioned that we could get in touch to get more insights into the prompts you use. My search fu failed me, but very interested in hearing more about this too.

Paul Jasper's profile picture
Paul Jasper1 year ago

Very nice talk. Do you have so llm.txt you can provide, which you used to prompt v0? Would love to add that to my codebase

listless's profile picture
listless3 months ago

wow incredible talk, thanks!

Joaquin Alori's profile picture
Joaquin Alori9 months ago

Can you share the prompt you said you were gonna share to nudge an llm towards this pattern? Great talk btw.

ALi's profile picture
ALi1 year ago

Can we have access to a sample repo or the slides?🙏

patcito's profile picture
patcito1 year ago

do you have a link to your slides?

Prashant Kumar Gupta's profile picture
Prashant Kumar Gupta11 months ago

Hi Fernando, I loved your talk, it was very useful. I was wonderinIf you Could share the prompts you used to create the Chess app that you talked in the talk.

Virgile RIETSCH's profile picture
Virgile RIETSCH1 year ago

@Antoine_Chlfr check this out!

Łukasz Marcinkowski's profile picture
Łukasz Marcinkowski1 year ago

Awesome talk! Such helpful :)

Related Videos