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

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
主站蜘蛛池模板: 池州市| 衡水市| 云南省| 石柱| 嘉黎县| 大同市| 隆尧县| 边坝县| 彭阳县| 会同县| 横峰县| 两当县| 齐齐哈尔市| 布尔津县| 大石桥市| 荣昌县| 桃园市| 连城县| 获嘉县| 山东省| 遂昌县| 习水县| 泽库县| 扶风县| 同心县| 高邮市| 客服| 昆明市| 法库县| 山东| 射洪县| 营口市| 仁寿县| 梁河县| 玛沁县| 绩溪县| 洪泽县| 钦州市| 墨玉县| 伊宁县| 绍兴县|