Skip to content

A beautifully designed React Coding Interview Preparation platform that provides common React interview questions with detailed answers. This project is built with React, React Router, and Tailwind CSS, featuring a sleek UI with Glassmorphism effects.

Notifications You must be signed in to change notification settings

surajgharpankar28/React-Coding-Prep

Repository files navigation

πŸš€ React Coding Challenge - Level Up Your React Skills!

Welcome to my 28 Days React Coding Challenge! This project is designed to enhance your React skills with daily hands-on challenges. Each question is dynamically loaded, providing an interactive and seamless developer experience.

πŸ“Œ Features

βœ… Dynamic Question Loading – Questions are stored in a separate file and rendered automatically.
βœ… SEO-Friendly Dynamic Routing – Each question has a clean, shareable URL.
βœ… Live Exploration & GitHub Integration – Jump straight into a live preview or check the source code.
βœ… Pagination Support – Easily navigate through multiple challenge pages.


πŸš€ How It Works

πŸ“₯ Question List Import

All challenge questions are stored in a dedicated file:

import questionList from "../questionList";

This object maps question numbers to their respective titles, making it easy to iterate and generate UI elements dynamically.

Adding a new challenge? Simply update the questionList file, and the UI updates automaticallyβ€”no need for manual changes in the component!

πŸ”— Dynamic Routing for Each Question

Every challenge has a unique, dynamically generated route:

<Link to={`/question-${id}-${title.toLowerCase().replace(/\s+/g, "-")}`}>
  Explore Live
</Link>

For example, if the challenge is "Building a Custom React Hook", the URL becomes:

/question-2-building-a-custom-react-hook

This approach ensures clean, readable URLs that improve user experience and SEO.

πŸ›  GitHub Integration

Each challenge has a direct GitHub link to its corresponding source code:

<Link
  to={`https://github.com/surajgharpankar28/React-Coding-Prep/tree/main/src/pages/Question_${id}`}
>
  GitHub
</Link>

Instead of searching through a large repository, users can jump directly to the specific question folder.


🎨 UI Overview

The landing page is designed to be clean, responsive, and user-friendly:

  • Title & Subtitle: Introduces the challenge and encourages participation.
  • Grid Layout: Displays challenges in a visually appealing format.
  • Action Buttons: Explore live or view source code with a single click.
  • Pagination Controls: Navigate through multiple pages effortlessly.

πŸ“œ Folder Structure

πŸ“‚ src
 ┣ πŸ“‚ pages
 ┃ ┣ πŸ“‚ Question_1
 ┃ ┣ πŸ“‚ Question_2
 ┃ β”— πŸ“‚ Question_N
 ┣ πŸ“œ questionList.js
 β”— πŸ“œ QuestionList.jsx
  • questionList.js – Contains the list of questions.
  • QuestionList.jsx – Renders the questions dynamically.
  • pages/Question_X/ – Individual question implementations.

πŸ—οΈ Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/surajgharpankar28/React-Coding-Prep.git

2️⃣ Install Dependencies

cd React-Coding-Prep
npm install

3️⃣ Start the Development Server

npm start

The app will be available at http://localhost:3000.


πŸ’‘ Future Improvements

  • βœ… Add filtering based on difficulty levels.
  • βœ… Implement user progress tracking.
  • βœ… Improve accessibility and performance optimizations.

πŸ’¬ Feedback

If you have any suggestions, feel free to open an issue or contribute to the project. Let's grow together! πŸš€

GitHub Repo

About

A beautifully designed React Coding Interview Preparation platform that provides common React interview questions with detailed answers. This project is built with React, React Router, and Tailwind CSS, featuring a sleek UI with Glassmorphism effects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published