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

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
主站蜘蛛池模板: 长顺县| 荆州市| 明水县| 巴林右旗| 曲麻莱县| 定安县| 和林格尔县| 颍上县| 荔波县| 龙江县| 安化县| 鹿泉市| 天台县| 平江县| 元谋县| 鄂伦春自治旗| 得荣县| 正镶白旗| 大安市| 京山县| 安平县| 星子县| 泸州市| 聊城市| 南雄市| 区。| 林周县| 鹿邑县| 五台县| 松桃| 县级市| 南昌市| 河间市| 子长县| 防城港市| 扎囊县| 南阳市| 准格尔旗| 平罗县| 历史| 佛山市|