Summit '22
The algebraic structure of functions, illustrated using React components
About this presentation
Did you know there’s an algebraic structure for functions? Apparently, functions can be monads. And that means they’re also applicative functors, and covariant functors. Not only that, but they also happen to be profunctors too… All of which may sound like a load of gobbledygook. And that’s OK. But since React components happen to be functions, we can apply some of these mathematical tricks to manipulate them in interesting ways. And it may even change the way you think about functions in the process.