> For the complete documentation index, see [llms.txt](https://docs.elorabiabderraouf.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.elorabiabderraouf.dev/documentation/react/tasks/react-foundations-components-and-rendering.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
