Giter Club home page Giter Club logo

learn-react-router-6's Introduction

⚛️ Learn React Router 6 with Bob Ziroll ⚛️

Course teacher Bob Ziroll

Hello and welcome! This is the starter code for each scrim in Bob Ziroll's Learn React Router 6 course on Scrimba! ⚛️

To follow the course on Scrimba's interactive code-learning platform, head to the Learn React Router 6 page on Scrimba!

Please read this carefully!

This README file is the best "single source of truth" for you to see updates made to the course if you're coming from the freeCodeCamp YouTube channel!

As time passes, dependencies can sometimes become outdated or start exhibiting bugs that weren't there when I first recorded the course.

In the version of this course on Scrimba, it's easy for me to add quick updates and new lessons. However, the course on YouTube is frozen in time and unchangeable. So please come check the "Updates" section below often, as you may find there are important updates that can help you avoid common bugs.

Setup

Check out this video for a walkthrough of the steps to get your project set up on your own machine. GitHub Repo Setup Instructions

Written Instructions

  1. Clone this repo to your own machine
  2. cd to the main folder in Terminal
  3. Run npm install
  4. (Optional, but preferred) Open just the section folder you're currently working on (e.g. 01 - Introduction to React Router) in your editor
  5. cd into the section folder, then into the specific lesson folder you're currently on.
  6. Run npm run dev to spin up the dev server
  7. Copy/paste or click on the localhost URL it provides to see the project at the starting point of the lesson
  8. Open the relevant files from the lesson and follow along.

To kill the dev server, hit ctrl + c.

Updates

I'll post any updates you need to be aware about in this section.

Info

React Router is the most popular routing library for React applications and one of the most downloaded React support libraries ever.

In this course, you'll learn:

  • What are SPAs?
  • Basic router setup
  • Route
  • Link
  • Route parameters
  • Nested routes and Outlet
  • Layout and Index routes
  • Relative paths
  • NavLink
  • Outlet context
  • Search parameters
  • Link state
  • 404 page / Splat routes
  • Loaders
  • Actions
  • Form & form data
  • defer()
  • Await
  • Suspense
  • Error handling & errorElement
  • useRouteError
  • useNavigate
  • useNavigation
  • useLocation
  • useLoaderData
  • useActionData
  • Protected Routes
  • Deploying with Netlify

learn-react-router-6's People

Contributors

bobziroll avatar lkrryba avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.