
22 Buzz Words Explained — Mutations, Pure Functions , Serverless, Hoisting, MVC + More
Syntax - Tasty Web Development Treats
00:00
Composition Is a Good Example of a Fun Fun Function
Composition is a type of functional programming. It can be used to quarantine an issue because that one particular issue would be sort of off on its own and wouldn't have the potential to bring down anything else. In react we often use composition where You might have like a component that Defects your data and displays it or sorry you might have another function that will go out and fetch your data Like something like Apollo what you would then do is you wrap the fetching component around your around your other displaying component and then together they make this one sort of super component. The one function eats the other component and then returns this returns a new component from there.
Play episode from 07:03
Transcript


