Functional Techniques with React

Currying and Partial Application

Currying

Curried function definition

Partial Application

Controlled component
Partial application of a curried function

Exploiting Short-circuit Evaluation

Infinite array runtime error

A Short-circuit Use Case

Short-circuit evaluation example

Avoid Loops with map, filter and reduce… and Enforce it

Using the map function to display array elements
ESLint error produced by eslint-plugin-no-loops

--

--

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