How to Create Pages and Set Up Routes in a React App  @cbtnuggets
How to Create Pages and Set Up Routes in a React App  @cbtnuggets
CBT Nuggets | How to Create Pages and Set Up Routes in a React App @cbtnuggets | Uploaded 1 year ago | Updated June 07 2023
CBT Nuggets trainer Shaun Wassell continues from an earlier video in his series on building a note-sharing app in React. This video is one portion of his full course on developing in the MERN stack. If what you see in this video about creating pages and setting up routes in a full-stack React app is helpful, you should check out the entire course at CBT Nuggets: How to Create a Full Stack React App: https://training.cbt.gg/b4d

There are many ways to organize your application while you develop. Shaun recommends that you divide your app into pages, components, and contexts, etc. — which is a function-based organization. A functional organization helps keep things straight in the beginning. But as you continue building out your app, you may want to switch to a feature-based organization.

A crucial part of app development is not trying to do too much at a time. Start by creating skeleton pages and route them to one another. Eventually you'll build up to functionality and intricacy, but start simple and build your way there.

To start, Shaun shows you how to build the three essential pages to start with for testing purposes: Notes, NotesDetail, NotFound. These will develop in complexity, but they're the right place to start. He goes on to connect them to one another via routes and implement automatic redirects.

00:00 – Introduction: thinking with what pages an application needs to run properly
0:30 – Small apps can be organized according to function rather than feature
1:20 – Creating the new pages in React for your application
2:10 – A skeleton structure for your new pages that will at least enable routing
3:35 – Adding routing to your pages
4:05 – Creating a new component that contains routing logic
4:25 – How to install and use the React router DOM package
5:20 – Displaying the pages in your route
5:55 – Defining your routing with Routes, paths and Switches
6:35 – How to connect pages using URL parameters
7:55 – How to finish the connections for your pages and then test the routes
9:20 – Setting up automatic redirects

👉 Watch this entire How to Create a Full Stack React App training course: https://training.cbt.gg/b4d

Not a CBT Nuggets subscriber? Start your free week: https://www.cbtnuggets.com/signup

New IT Training releases: https://training.cbt.gg/x85
-----------------
Connect with CBT Nuggets for the latest in IT training:
• Twitter - https://twitter.com/CBTNuggets
• Facebook - http://facebook.com/CBTNuggets
• Instagram - http://instagram.com/CBTNuggets
• LinkedIn - https://www.linkedin.com/company/cbt-nuggets

#react #reactrouter #mernstack #appbuilding #visualstudio #ittraining #cbtnuggets
How to Create Pages and Set Up Routes in a React App @cbtnuggetsOSI Reference Model & TCP/IP Protocol Stack #shorts @cbtnuggetsWhat is Azure Cosmos DB? @cbtnuggetsWhat is Cisco Unified Communications Manager Express? @cbtnuggets4 Most Difficult Security Certs #shorts @cbtnuggetsHow to Create PostgreSQL Tables with pgAdmin for Beginners in (about) 1 hour @cbtnuggetsHow to Secure Kubernetes GUIs @cbtnuggetsHow to Connect Firebase Auth to an Angular App @cbtnuggetsNew IT Training Courses at CBT Nuggets @cbtnuggetsWhat is Business Continuity and Disaster Recovery Planning? @cbtnuggetsNetwork Commands You Should Know #shorts @cbtnuggetsWhat is H.323 and H.323 Protocol @cbtnuggetsWhy use Recoil in React? | Atoms and Selectors @cbtnuggetsTCP/IP Well Known Ports | CCNA @cbtnuggetsWhat are Azure Availability Zones? @cbtnuggets3 Rules of Cabling @cbtnuggetsWhy Storybook React Makes Building UI Components Easy @cbtnuggetsDifference between a Layer 3 Switch and Router? - Part 2 @cbtnuggetsDifference between a Layer 3 Switch and Router? - Part 1 @cbtnuggetsNew IT Training Courses at CBT Nuggets @cbtnuggetsHow to Check Which Services are Running on a Network using Port Discovery @cbtnuggetsCisco CCNP Exam Updates in 2023 @cbtnuggets6 weeks to study for the CCNA! @cbtnuggetsWhat are the Basics of Jest Syntax? | Testing React Components with Jest | React Testing Library @cbtnuggetsSwitch vs Hub #shorts @cbtnuggetsHow to Effectively Test Your CUCM Dial Plan | Cisco Unified Communications Manager (CUCM) @cbtnuggetsNew IT Training Courses at CBT Nuggets @cbtnuggetsHow to Create Minecraft in Python and Panda3D @cbtnuggetsIntroduction to Cisco Collaboration Technologies and Solutions | Cisco CCT Collaboration @cbtnuggetsWhat is Redux? Why use Redux? @cbtnuggetsHacker Tools, Techniques, and Incident Handling SEC504 #shorts @cbtnuggetsHack-Proof Your Wi-Fi: How to Design a Strong Wireless Network with Authentication & Encryption @cbtnuggetsClasses and Objects in Python Explained @cbtnuggetsHub vs Router #shorts @cbtnuggetsWhat is Power over Ethernet? @cbtnuggetsHow does DHCP work in an Enterprise? @cbtnuggetsSwitch vs Router #shorts @cbtnuggetsHow to use Moment.js in React | Moment Library in React | Introduction to Moment 🕘 @cbtnuggetsMicrosoft Azure Administrator Associate AZ-104 Quiz #shorts @cbtnuggetsWhat are the Principles of Zero Trust Security? @cbtnuggetsWhat are Dial Peer Wildcards? | Cisco Cube Configuration @cbtnuggetsPrimary Functions of a Router and Switch #shorts @cbtnuggetsHow to Build a React Reusable Calendar Component @cbtnuggetsWhat are the Different Types of Servers? | Server Form Factors @cbtnuggets10 Most Used Linux Commands & download FREE Linux Command Cheat Sheet #shorts @cbtnuggetsNew IT Training Courses | CBT Nuggets @cbtnuggetsHow to Identify Digital Evidence | Introduction to Digital Forensics @cbtnuggetsWhy use Functions in Python? @cbtnuggetsWill there be a new CCNA in 2023? @cbtnuggetsWhat are the Basics of APIs? @cbtnuggets

How to Create Pages and Set Up Routes in a React App @cbtnuggets