Reader small image

You're reading from  Hands-On Design Patterns with React Native

Product typeBook
Published inSep 2018
Reading LevelExpert
PublisherPackt
ISBN-139781788994460
Edition1st Edition
Languages
Right arrow
Author (1)
Mateusz Grzesiukiewicz
Mateusz Grzesiukiewicz
author image
Mateusz Grzesiukiewicz

Mateusz Grzesiukiewicz has worked on numerous big projects, including an investment banking platform at Goldman Sachs, a Jira project management tool at Atlassian, and a recruitment portal at GoldenLine. All of these projects served millions of people, which made them great opportunities to test scalability and the industry's best design patterns. He strives to popularize the common patterns and help people grow their technology at scale. He has spent hundreds of hours teaching, for instance at a private programming school called Coder's Lab. He has over 5,000 students registered on his online React course on Udemy. He would love to bring programming to every household, hence this bookHands-On Design Patterns with React Native.
Read more about Mateusz Grzesiukiewicz

Right arrow

Learning functions from the Ramda library

Map, filter, reduce, iterators, generators, and selectors. Not too much, right? Don't get too scared, can you speak English using only 10 words? No? Okay, then we can proceed with learning some new words that will make us more fluent in JavaScript programming.

Composing functions

One of the most advertised features of HOCs is their composability. Taking, for instance, the withLogger, withAnalytics, and withRouter HOCs, we can compose them in the following fashion:

withLogger(withAnalytics(withRouter(SomeComponent)))

The Ramda library takes composability to the next level. Unfortunately, I find many developers hardly understand it. Let's look at an equivalent example:

R.compose...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Design Patterns with React Native
Published in: Sep 2018Publisher: PacktISBN-13: 9781788994460

Author (1)

author image
Mateusz Grzesiukiewicz

Mateusz Grzesiukiewicz has worked on numerous big projects, including an investment banking platform at Goldman Sachs, a Jira project management tool at Atlassian, and a recruitment portal at GoldenLine. All of these projects served millions of people, which made them great opportunities to test scalability and the industry's best design patterns. He strives to popularize the common patterns and help people grow their technology at scale. He has spent hundreds of hours teaching, for instance at a private programming school called Coder's Lab. He has over 5,000 students registered on his online React course on Udemy. He would love to bring programming to every household, hence this bookHands-On Design Patterns with React Native.
Read more about Mateusz Grzesiukiewicz