Skip to content

Latest commit

 

History

History
 
 

readme.md

Chapter 3 : Functional Programming with JavaScript

React, Flux, and Redux all fit within the functional JavaScript paradigm. Understanding the basic concepts of functional programming will make you better at structuring React applications.

Samples

Introduction

  • what it means to be functional (1, 2, 3, 4, 5, 6, 7)
  • imperative vs. declarative (1, 2)
  • Populate The United States (demo, code)

Immutability

  • rating colors (1, 2, 3)
  • adding colors (4, 5, 6)

Pure Functions

  • self educate (1, 2, 3)
  • DOM (4, 5)

Transforming Data

  • filtering arrays (1, 2, 3)
  • mapping arrays (4, 5, 6, 7)
  • object to array (8)
  • array to number (9, 10)
  • array to object (11, 12)

Higher Order Functions

  • invokeIf (1)
  • userLogs (2)

Recursion

  • counting down (1, 2)
  • deep pick (3)

Composition