Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Design Patterns with React Native

You're reading from   Hands-On Design Patterns with React Native Proven techniques and patterns for efficient native mobile development with JavaScript

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781788994460
Length 302 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Mateusz Grzesiukiewicz Mateusz Grzesiukiewicz
Author Profile Icon Mateusz Grzesiukiewicz
Mateusz Grzesiukiewicz
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. React Component Patterns 2. View Patterns FREE CHAPTER 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

View Patterns

One very demanding skill is writing good view code the first time around. It comes with experience and becomes almost automatic at some point. Hence, it is vital to do it right from the beginning. In this chapter, we will explore best practices and go through the React JSX patterns that you already used in the previous chapter. We will also focus on the broader spectrum of built-in components, which include input and forms. At the very end, I will show you a nice tool called a linter that is essential for any new frontend project.

In this chapter, you will learn how to do the following:

  • Write concise JSX
  • Use common React Native built-in components
  • Create simple forms using TextInput
  • Distinguish between controlled and uncontrolled input
  • Create error boundaries
  • Eliminate Mixins from your code base
  • Set up a linter to enforce your code style guide
...
You have been reading a chapter from
Hands-On Design Patterns with React Native
Published in: Sep 2018
Publisher: Packt
ISBN-13: 9781788994460
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 $19.99/month. Cancel anytime