- 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.
推薦閱讀
- 社交網絡對齊
- Aptana Studio Beginner's Guide
- 電子政務效益的經濟分析與評價
- Learning QGIS 2.0
- 物聯網信息安全
- JBoss EAP6 High Availability
- 網絡互聯技術(實踐篇)
- React:Cross-Platform Application Development with React Native
- 網絡環境中基于用戶視角的信息質量評價研究
- Learning Windows 8 Game Development
- 紅藍攻防:構建實戰化網絡安全防御體系
- 大型企業微服務架構實踐與運營
- 園區網絡架構與技術
- 現代通信系統(第5版)
- LwIP應用開發實戰指南:基于STM32