-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Learn React with TypeScript
By :

In this chapter, we learned that server-side data fetching can improve the performance of the initial loading of a page because of reduced network calls and reduced client-side JavaScript.
We used server-side data fetching in our app, in an RSC, querying a SQLite database for the data. We used React Suspense to implement a loading indicator and a React error boundary to handle and report errors.
We learned that Server Functions are a simple and type-safe approach to mutating data. Finally, we used a Server Function in our app to add a new blog post to our database.
You now have the skills to make web pages load blazingly fast and the knowledge to quickly implement maintainable actions on those pages.
In the next chapter, we learn how to implement client-side data fetching and mutations using a popular third-party library.