React Router Login App

This is a React app that incorporates routing, login pages, and restricted access pages. It is designed to help users access specific pages on the app, with some pages requiring login information to access.

Installation

To use this app, follow the steps below:

Clone the repository to your local machine using git clone https://github.com/mohammad2682/moh-daily-app.git Navigate to the project directory using cd your-repository Install the necessary dependencies using npm install Start the app using npm start

Usage

After installing the app, you can use it to access different pages on the app. The components used in this app include:

Navbar - This component contains links to the different pages on the app. Home - This page is accessible to all users and displays general information about the app. Post - This page is accessible only to users who are logged in and displays detailed information about specific posts. Login - This page is where users can log in to access restricted pages on the app. To use the app, follow these steps:

Open the app in your web browser. Click on the links in the navbar to navigate to different pages on the app. If you try to access the Post page without being logged in, you will be redirected to the Login page. If you are logged in, you will be able to access the Post page and view specific posts.

Contributing

If you want to contribute to this project, feel free to submit a pull request or open an issue.