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 Full-Stack React, TypeScript, and Node
  • Table Of Contents Toc
Full-Stack React, TypeScript, and Node

Full-Stack React, TypeScript, and Node - Second Edition

By : David Choi
close
close
Full-Stack React, TypeScript, and Node

Full-Stack React, TypeScript, and Node

By: David Choi

Overview of this book

In the fast-paced world of web development, React sets the benchmark for high-performance client-side applications, while Node.js and Express enable scalable server-side solutions and web services. TypeScript enhances JavaScript projects with robustness and maintainability, making it essential for large-scale applications. This second edition provides a hands-on guide to mastering these technologies with new chapters and updated content reflecting the latest industry practices. Start with a solid foundation in TypeScript, building high-quality web applications. Explore React 19, leveraging the latest Hooks API and Redux Toolkit for state management. Transition to server-side development with Express, incorporating modern practices like JWT-based authentication and Prisma ORM for database management. A key addition is Docker, streamlining deployment with containerized applications. Learn to configure Express projects with Docker and deploy to AWS for scalable solutions. Updates include Vitest for testing, new React features like Suspense, and expanded content on Postgres and Prisma ORM. By the end of this book, you will have built and deployed a comprehensive full-stack application, ready for production.
Table of Contents (5 chapters)
close
close

Understanding inheritance

In this section, we’ll learn about inheritance. Inheritance in OOP is a method for doing code reuse. This will shrink our application code size; generally, shorter code tends to have fewer bugs. So, this will improve our app quality once we get started building.As stated, inheritance is primarily about allowing code reuse. Inheritance is also conceptually designed to be like real-life inheritance so that the logical flow of inheritance relationships can be intuitive and easier to understand. Let’s look at an example of this now. Create a file called classInheritance.ts and add the following code:

class Vehicle {
    constructor(private wheelCount: number) {}
    showNumberOfWheels() {
        console.log(`wheels: ${this.wheelCount}`);
    }
}
class Motorcycle extends Vehicle {
    constructor() {
        super(2);
    }
}
class Automobile extends Vehicle {
    constructor() {
        super(4);
    }
}
const motorCycle = new Motorcycle();
motorCycle...
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.
Full-Stack React, TypeScript, and Node
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist 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