Chapter 10

Functional Programming with JavaScript

Learning Objectives

By the end of this chapter, you will be able to:

  • Use pure functions in Redux reducers and selectors
  • Solve advanced function testing situations
  • Apply currying, partial application, and closures in modern JavaScript applications
  • Implement a compose function for use in a backend for frontend (BFF) built with micro
  • Apply JavaScript built-ins to write in an immutable style specifically in a Redux application
  • Implement a query and a mutation in the context of a BFF using GraphQL
  • Select from three approaches to handle side effects in a React/Redux application

In this chapter, you will learn about the concepts of functional programming, how to apply them in JavaScript, and identify ...

Get Professional JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.