Skip to content

NickTheCreator/react-fundamentals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 React Essentials

An interactive learning application that demonstrates the core concepts of React through visual examples and live code samples.

This project was developed as an educational resource, focusing on teaching React fundamentals including components, JSX syntax, props, and state management.


📋 Repository Overview

React Essentials is an interactive educational application designed to help developers understand the fundamental building blocks of React applications.

This repository contains the complete React application, showcasing four core concepts: Components, JSX, Props, and State. Each concept is explained with visual diagrams and runnable code examples that users can explore by clicking interactive buttons.

The main focus of this project is teaching React fundamentals through a hands-on, visual approach where learners can see real code examples for each concept.


📁 File Structure

react-fundamentals/
├── src/
│   ├── components/
│   │   ├── CoreConcept/
│   │   │   ├── CoreConcept.jsx
│   │   │   ├── CoreConcepts.jsx
│   │   │   └── index.jsx
│   │   ├── Example/
│   │   │   ├── Examples.jsx
│   │   │   └── index.jsx
│   │   ├── Header/
│   │   │   ├── Header.jsx
│   │   │   └── index.jsx
│   │   ├── Section/
│   │   │   ├── Section.jsx
│   │   │   └── index.jsx
│   │   └── Tab/
│   │       ├── TabButton.jsx
│   │       ├── Tabs.jsx
│   │       └── index.jsx
│   ├── assets/
│   │   ├── components.png
│   │   ├── config.png
│   │   ├── jsx-ui.png
│   │   ├── react-core-concepts.png
│   │   └── state-mgmt.png
│   ├── App.jsx
│   ├── data.js
│   ├── index.jsx
│   └── index.css
├── index.html
├── package.json
├── vite.config.js
└── README.md

🧩 Sections / Features Included

  • Header — Displays the "React Essentials" title with a React logo and a randomly selected descriptive word (Fundamental, Crucial, or Core)
  • Core Concepts — Shows four essential React concepts (Components, JSX, Props, State) with icons and brief descriptions
  • Examples — Interactive tab-based section where users click buttons to see code examples and explanations for each React concept

🎯 Purpose and Usage

Goal

This project is an interactive educational application built using React and Vite to teach core React concepts in a visual and hands-on way.

It is useful as:

  • A learning resource for anyone starting with React who wants to understand the fundamentals
  • A reference guide to see real code examples for common React patterns
  • A demo project to practice building reusable components and managing component state

🛠️ Technologies Used

  • React 19 — JavaScript library for building user interfaces with reusable components
  • React DOM — Used to render React components into the browser
  • Vite — Fast development server and build tool for the project

🚀 Getting Started

  1. Clone or download this repository
  2. Navigate to the project folder in your terminal
  3. Install dependencies with npm install
  4. Start the development server with npm run dev
  5. Open the URL shown in your terminal (usually http://localhost:5173) in your browser
  6. Click the tabs in the Examples section to see different React concepts explained with code examples

Key files to review:

  • src/App.jsx — Main component that shows the structure of the entire page
  • src/data.js — Contains the data (core concepts and code examples)
  • src/components/ — Reusable components like Header, CoreConcept, and TabButton

📖 Design Details

  • Fonts: Quicksand (body text) and Roboto Condensed (headings)
  • Colors: Purple and pink gradient background (#280a48 to #20043d), with accent colors in cyan (#03d5ff) and magenta (#ea00ff)
  • Style: Modern, dark theme with vibrant gradient text for the main title

🧠 What I Practiced

  • React Components — Building reusable, self-contained UI blocks
  • JSX Syntax — Writing HTML-like code inside JavaScript functions
  • Props — Passing data from parent to child components to make them configurable
  • State Management — Using useState hook to manage which tab is selected and show dynamic content
  • Component Composition — Breaking down a complex UI into smaller, manageable components

📝 Notes

  • The header displays a random descriptive word each time the component renders
  • All code examples for each concept are stored in the data.js file for easy updates
  • The project uses Vite for fast development and optimized builds

About

This repository was created to store the final result of a react course taken during the year and to track my progress

Topics

Resources

Stars

Watchers

Forks

Contributors