A collection of React components demonstrating various list rendering techniques, conditional styling, and data manipulation patterns.
- React 18
- TypeScript
- CSS3
Basic list rendering with conditional styling - strikes through purchased items.
Product display with price-based conditional styling - highlights expensive items in red.
Nested list structure displaying categorized menu items with proper hierarchy.
Ordered list implementation with automatic numbering for book titles.
Array filtering demonstration - displays only animals starting with "E".
Advanced grouping using reduce()
to organize students by grade levels.
Conditional rendering pattern - shows placeholder when no messages exist.
Shopping list with strikethrough styling for purchased items and Product listing with price-based highlighting
Nested category structure with fruits and vegetables
Rendering Animals that starts with letter from an array and grouping of students' grade
Conditionally renders messages if they exist
# Clone the repository
git clone <repository-url>
# Navigate to project directory
cd working-with-react
# Install dependencies
npm install
# Start development server
npm run dev
- Array
.map()
method for rendering lists - Conditional styling with inline styles and CSS classes
- Nested list structures and component composition
- Array filtering and data manipulation
- Using
.reduce()
for data grouping - Conditional rendering patterns
- TypeScript integration with React components
Each component is self-contained and can be used independently. The main App.jsx
displays all exercises in a clean, organized layout with proper headings and spacing.
This project is open source and available under the MIT License.