Book Image

Full-Stack React Projects

By : Shama Hoque
Book Image

Full-Stack React Projects

By: Shama Hoque

Overview of this book

The benefits of using a full JavaScript stack for web development are undeniable, especially when robust and widely adopted technologies such as React, Node, and Express and are available. Combining the power of React with industry-tested, server-side technologies, such as Node, Express, and MongoDB, creates a diverse array of possibilities when developing real-world web applications. This book guides you through preparing the development environment for MERN stack-based web development, to creating a basic skeleton application and extending it to build four different web applications. These applications include a social media, an online marketplace, a media streaming, and a web-based game application with virtual reality features. While learning to set up the stack and developing a diverse range of applications with this book, you will grasp the inner workings of the MERN stack, extend its capabilities for complex features, and gain actionable knowledge of how to prepare MERN-based applications to meet the growing demands of real-world web applications.
Table of Contents (19 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Adding CSS styles


When discussing user interface implementations for the applications in this book, we chose not to focus on the details of the CSS styling code applied and relied mostly on the default Material-UI stylings. But given that implementing any user interface requires considering styling solutions, we will briefly look at some of the options available. 

When it comes to adding CSS styles to the frontend, there are a number of options, each with pros and cons. In this section, we will discuss the two most common options, which are  external style sheets and inline styles, along with a newer approach of writing CSS in JavaScript, or more specifically JSS, which is used in Material-UI components and hence also for the applications in this book.

External style sheets 

External style sheets allow us to define CSS rules in separate files that can be injected into the necessary view. Placing CSS styles this way in external style sheets was once considered the better practice because it...