An open API service indexing awesome lists of open source software.

https://github.com/chen-abudi/react-router-auth

This practice project focus on working with authentication in React.
https://github.com/chen-abudi/react-router-auth

css-modules expressjs javascript nodejs react react-router-v6

Last synced: 8 months ago
JSON representation

This practice project focus on working with authentication in React.

Awesome Lists containing this project

README

          

# react-router-auth

## 📣 Overview:

- Intro
- Tech Stack
- Techniques
- How to Get Started
- Additional Link

## 🔎 Intro:

This practice project focus on working with authentication in React.
It's the updated version of the [**_react-router-full_**](https://github.com/Chen-Abudi/react-router-full) project.

## 🧰 Tech Stack:

- React
- React Router Dom v6
- JavaScript
- NodeJS
- ExpressJS
- CSS Modules

## 🛠️ Techniques:

- Authentication
- **_Validate_** user input and **_Handle Validation Errors_**
- **_redirect_**: When returning or throwing responses in loaders and actions, we can use redirect to redirect to another route.

**`Note`**: It's recommended to use redirect in loaders and actions rather than useNavigate in your components when the redirect is in response to data.

- **`React Router Dom Hooks`**:

- **_useRouteLoaderData_**: Is a hook that efficiently manages loading states and data for specific routes. It optimizes rendering by fetching data only when needed, enhancing user experience.
- **_useRouteError_**: Is a hook that returns anything during an action, loader, or rendering inside of an **errorElement**.
- **_useNavigation_**: Is a hook that provides imperative navigation capabilities. It allows to programmatically navigate to different routes, pass state, and control navigation history, enhancing dynamic routing and user experience management.

---

## 🔗 Additional Link:

If you want to strengthen your knowledge and skills of **React, Redux, and more...** along the **Best Practices**, Feel free to check this course on Udemy by **`Maximilian Schwarzmüller`**:

## Visit the Course [👉🏽 **HERE !**](https://www.udemy.com/course/react-the-complete-guide-incl-redux/)

**_`Shoutout to Maximilian Schwarzmüller for the practice projects, all the lectures, the exercises, and the React course in Udemy. Mahalo, Thank you!`_** 🌺