- React Design Patterns and Best Practices(Second Edition)
- Carlos Santana Roldán
- 134字
- 2021-06-24 15:43:41
The basics of functional programming
Apart from following the best practices when we write JSX and use a linter to enforce consistency and find errors earlier, there is one more thing we can do to clean up our code: follow a functional programming (FP) style.
As discussed in Chapter 1, Taking Your First Steps with React, React has a declarative programming approach that makes our code more readable.
FP is a declarative paradigm, where side-effects are avoided, and data is considered immutable to make the code easier to maintain and to reason about.
Don't consider the following section an exhaustive guide to functional programming; it is only an introduction to get started with some concepts that are commonly used in React of which you should be aware.
推薦閱讀
- 網絡云百問百答
- 光網絡評估及案例分析
- Truffle Quick Start Guide
- SD-WAN架構與技術(第2版)
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- The Kubernetes Workshop
- 通信十年:擁抱互聯網
- 工業互聯網創新實踐
- Getting Started with Memcached
- 一本書讀懂TCP/IP
- 5G智慧交通
- 智能物聯安防視頻技術基礎與應用
- ReasonML Quick Start Guide
- 走近2050:注意力、互聯網與人工智能
- 學術虛擬社區用戶社會化交互行為研究