Chapter 2. View patterns
One of the very demanding skills is writing a good view code in the first place. It comes with experience and becomes almost automatic at some point. Thus, it is vital to do it right from the beginning. We will explore the best practices and go through react JSX patterns that you already used in the previous chapter. In this chapter, we will focus on the broader spectrum of built-in components that include inputs and forms. At the very end, I will show you a nice tool called “linter” that is essential for any new frontend project.
In this chapter you will learn how to:
- write concise JSX
- use common React Native built-in components
- create simple Forms using TextInput
- distinguish Controlled and Uncontrolled inputs
- create Error Boundaries
- eliminate Mixins from your codebase
- set up a linter to enforce your code style guide