Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Modern Full-Stack React Projects
  • Table Of Contents Toc
Modern Full-Stack React Projects

Modern Full-Stack React Projects

By : Bugl
4.8 (9)
close
close
Modern Full-Stack React Projects

Modern Full-Stack React Projects

4.8 (9)
By: Bugl

Overview of this book

Understanding full-stack development is vital as companies aim to bridge the gap between frontend and backend development. Recent trends show deeper integration between the two, opening numerous possibilities for building real-world web applications, through server-side technologies like Node.js, Express, and MongoDB. Written by the author of Learning Redux and Learn React Hooks, and CEO of TouchLay, Modern Full-Stack React Projects will guide you through the entire process of advancing from a frontend developer to a full-stack developer. Starting with how to set up robust projects that can be maintained for a long time, you’ll then progress toward developing a backend system and integrating it with the frontend. Throughout the book, you’ll learn how to build, test, and deploy a blog application and a chat application. You’ll also explore MongoDB, Express, React, Node.js (MERN) stack, best practices for frontend and backend development, different full-stack architectures, unit and end-to-end testing, and deployment of full-stack web applications. Once you get to grips with the essential concepts, you’ll progress to learn how to use Next.js, an enterprise-grade full-stack web framework for React. By the end, you’ll be well-versed in the MERN stack and all set to create performant and scalable full-stack web applications.
Table of Contents (28 chapters)
close
close
1
Part 1:Getting Started with Full-Stack Development
4
Part 2:Building and Deploying Our First Full-Stack Application with a REST API
8
Part 3:Practicing Development of Full-Stack Web Applications
16
Part 4:Exploring an Event-Based Full-Stack Architecture
20
Part 5:Advancing to Enterprise-Ready Full-Stack Applications

Using Server Actions to sign up, log in, and create new posts

So far, we have only been fetching data from the database on the server and sending it to the client, but for user interactivity, we need to be able to send data back from the client to the server. To be able to do this, React introduced a pattern called Server Actions.

Server Actions are functions that are executed on the server side but can be triggered from the client side, for example, through a form submission. This can be done even with JavaScript disabled on the client, which will then submit the form using regular form submission. When JavaScript is enabled, the form will be progressively enhanced and not require a full refresh to submit. These functions are defined by tagging regular JavaScript functions with the "use server" directive, and then either importing them into a client component or passing them to a client component via props. While regular JavaScript functions cannot be passed to client...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Modern Full-Stack React Projects
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon