The React team at Facebook has been using terminology from functional programming, such as ‘functional components’ and ‘higher order components’ to describe certain features of React. This has lead a whole generation of JavaScript programmers to believe they are doing functional programming when they write code using React. These programmers have been misled about what functional programming is all about.

To prove this, let’s first examine what functional programming is, what its key tenets are, and then we’ll see how much of it React aligns to.

What is functional programming?

Functional programming (FP) is a programming paradigm based on computation as evaluation, as opposed…


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store