From the course: React: Design Patterns (2021)

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

What is functional programming?

What is functional programming?

- [Instructor] Okay, so the final topic that we're going to talk about in this course is functional programming and how do we incorporate it into our React applications. Now I don't refer to functional programming as a design pattern, but functional programming itself does lead to some very interesting design patterns in React and that's what we're going to be taking a look at here. So first let's start off with a definition of functional programming. Now, functional programming is a very broad topic, and I do have some courses on that in the library. So if you want to go into more depth here, feel free to take a look at those. But the basic definition that I'm going to give you here is that functional programming is a way of organizing our code base such that we minimize mutation and state change in our applications, we keep our functions independent of external data, this is something called pure functions, and we…

Contents