Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Design Patterns with React Native

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

Product type Book
Published in Sep 2018
Publisher Packt
ISBN-13 9781788994460
Pages 302 pages
Edition 1st Edition
Languages
Author (1):
Mateusz Grzesiukiewicz Mateusz Grzesiukiewicz
Profile icon Mateusz Grzesiukiewicz

Table of Contents (13) Chapters

Preface 1. React Component Patterns 2. View Patterns 3. Styling Patterns 4. Flux Architecture 5. Store Patterns 6. Data Transfer Patterns 7. Navigation Patterns 8. JavaScript and ECMAScript Patterns 9. Elements of Functional Programming Patterns 10. Managing Dependencies 11. Type Checking Patterns 12. Other Books You May Enjoy

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 chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}