- React Components
- Christopher Pitt
- 241字
- 2021-07-09 19:34:46
Chapter 3. Saving and Communicating Data
In the previous chapter, we created complex component hierarchies. We created a list of pages and a way to edit those pages. Yet we stopped short of saving and reading any of that data to some kind of storage.
We could, for instance, send an edit through an Ajax request to be saved in a database server. In fact, that's what often happens in the applications we use these days. They always save our interactions, irrespective of whether we expect them to or not.
In this chapter, you will learn about local data stores and communicating with them. You'll also learn about event-based architecture and how it promotes the unidirectional flow of data.
There are many ways to save data. It's a rich and interesting topic that could fill scores of books. I could go so far as to say it is at the core of how businesses and applications work.
Furthermore, how data is communicated can often be different in a maintainable application and an unmaintainable application. It's up to us to figure out elegant ways of persisting data so that our applications remain maintainable.
We will only explore local storage in this chapter. You'll be able to see your stored data beyond page reloads, but nobody else will. You cannot build a practical website based on this chapter alone. You will have to wait until we explore React on the server.
- Implementing VMware Horizon 7(Second Edition)
- ExtGWT Rich Internet Application Cookbook
- 編程卓越之道(卷3):軟件工程化
- Learning RabbitMQ
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務(wù)、多團(tuán)隊(duì)協(xié)同等核心場(chǎng)景實(shí)戰(zhàn)
- 名師講壇:Java微服務(wù)架構(gòu)實(shí)戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- PySide GUI Application Development(Second Edition)
- Python機(jī)器學(xué)習(xí)經(jīng)典實(shí)例
- 蘋(píng)果的產(chǎn)品設(shè)計(jì)之道:創(chuàng)建優(yōu)秀產(chǎn)品、服務(wù)和用戶(hù)體驗(yàn)的七個(gè)原則
- ASP.NET Web API Security Essentials
- Selenium WebDriver Practical Guide
- 虛擬現(xiàn)實(shí)建模與編程(SketchUp+OSG開(kāi)發(fā)技術(shù))
- 用Go語(yǔ)言自制編譯器
- Java無(wú)難事:詳解Java編程核心思想與技術(shù)
- Java王者歸來(lái):從入門(mén)邁向高手