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

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
主站蜘蛛池模板: 封丘县| 桂阳县| 内乡县| 长岭县| 于都县| 库车县| 秭归县| 溆浦县| 英山县| 三门县| 汉川市| 神木县| 油尖旺区| 信丰县| 丹寨县| 呼伦贝尔市| 宜川县| 右玉县| 瑞昌市| 都昌县| 富平县| 台南市| 如东县| 云浮市| 辽阳市| 忻城县| 苍溪县| 巧家县| 高青县| 调兵山市| 新乐市| 察哈| 牟定县| 集贤县| 东阳市| 苏尼特右旗| 清镇市| 新巴尔虎右旗| 宁明县| 威远县| 郯城县|