# React Foundations – Components & Rendering

Your will Build a Users Card system using the provided:

* `users.js`
* Theme styles
* No additional data

### 🎯Objective

* Component structure
* Component structure
* Conditional rendering
* Image fallback logic

### 📂 Required Structure

```
src/
 ├── assets/
 │     ├── users.js
 │     ├── profile.svg
 ├── App.css
 ├── UserCard.jsx
 ├── App.jsx
 ├── index.css
 └── main.jsx
```

### 🛠 Task Steps

#### Create UserCard Component

* Import `users`
* Use `.map()` to render all participants
* Each participant must render `<UserCard/>`
* Do NOT render data directly inside `App.js`

{% hint style="info" %}
**Card must display:**&#x20;

* Profile Image
* Username
* Team
* Online Status
  {% endhint %}

{% hint style="success" %}
**Bonus (Optional)**

* Show total participants count
* Show online count
* Add filter: Show only online users
  {% endhint %}

### 📤 Deliverables

Your submission must include:

* ✅ Correct `.map()` usage
* ✅ Correct conditional rendering
* ✅ Respecting styling rules

{% hint style="danger" %}
Use only provided theme, No external UI libraries
{% endhint %}

<p align="center"><a href="https://github.com/ITC-Frontend-Advanced/React-User-Card-Base" class="button secondary" data-icon="database">Style &#x26; Data Base</a><a href="https://github.com/organizations/ITC-Frontend-Advanced/repositories/new" class="button primary" data-icon="react">Start the React Task</a></p>

{% hint style="warning" %}
**Deadline:** 28 Feb 2026 11:59 PM
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.elorabiabderraouf.dev/documentation/react/tasks/react-foundations-components-and-rendering.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
