官术网_书友最值得收藏!

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
主站蜘蛛池模板: 清徐县| 吐鲁番市| 万荣县| 大洼县| 武鸣县| 辛集市| 辽阳县| 辽阳市| 安泽县| 兴仁县| 虹口区| 浠水县| 绍兴市| 苏尼特左旗| 开原市| 龙门县| 嘉定区| 秦安县| 原阳县| 阳城县| 荣昌县| 文成县| 兴海县| 井冈山市| 察雅县| 宁陵县| 梁河县| 江阴市| 达孜县| 霍山县| 乌恰县| 林口县| 彭州市| 屯门区| 青冈县| 揭东县| 武清区| 上虞市| 汨罗市| 洛南县| 土默特左旗|