- 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.
推薦閱讀
- Mastering Node.js(Second Edition)
- C++黑客編程揭秘與防范
- 物聯(lián)網(wǎng)安全(原書第2版)
- Learning QGIS 2.0
- 新一代物聯(lián)網(wǎng)架構(gòu)技術(shù):分層算力網(wǎng)絡(luò)
- WordPress 5 Complete
- 局域網(wǎng)組建、管理與維護項目教程(Windows Server 2003)
- Socket.IO Real-time Web Application Development
- 2018網(wǎng)信發(fā)展報告
- 物聯(lián)網(wǎng)頂層設(shè)計與關(guān)鍵技術(shù)
- AIoT應用開發(fā)與實踐
- 現(xiàn)代通信系統(tǒng)(第5版)
- 圖神經(jīng)網(wǎng)絡(luò)前沿
- 物聯(lián)網(wǎng)與智慧農(nóng)業(yè)
- 商業(yè)的本質(zhì)和互聯(lián)網(wǎng)