Skip to content

Commit

Permalink
Merge pull request #1 from Miro-wq/Miro-wq-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Miro-wq authored Nov 20, 2024
2 parents 6714465 + cfc724b commit 1e0d60c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The `Profile` component displays user information for a social media account. Th
- Utilizes a structured layout with CSS for a clean and responsive design.

**Example Usage:**
```jsx
```js
import user from 'path/to/user.json';

<Profile
Expand All @@ -32,7 +32,7 @@ import user from 'path/to/user.json';
/>
```

### 2. Statistics Component
![2. Statistics Component](https://img.shields.io/badge/2.%20Statistics%20Component-purple?style=for-the-badge)

The `Statistics` component is designed to display a variety of statistics based on the provided data. The data is passed as props, allowing the component to dynamically render the statistics. The title prop is optional, and the stats prop contains an array of statistical data stored in `data.json`.

Expand All @@ -42,14 +42,14 @@ The `Statistics` component is designed to display a variety of statistics based
- Includes the option to dynamically generate background colors for each statistic.

**Example Usage:**
```jsx
```js
import data from 'path/to/data.json';

<Statistics title="Upload stats" stats={data} />
<Statistics stats={data} />
```

### 3. FriendList Component
![3. FriendList Component](https://img.shields.io/badge/3.%FriendList%20Component-purple?style=for-the-badge)

The `FriendList` component shows a list of the user's friends, with each friend's online status clearly indicated. This component accepts a `friends` prop, which is an array of objects representing each friend, stored in `friends.json`.

Expand All @@ -59,13 +59,13 @@ The `FriendList` component shows a list of the user's friends, with each friend'
- Renders a flexible list that can accommodate any number of friends.

**Example Usage:**
```jsx
```js
import friends from 'path/to/friends.json';

<FriendList friends={friends} />
```

### 4. TransactionHistory Component
![4. TransactionHistory Component](https://img.shields.io/badge/4.%TransactionHistory%20Component-purple?style=for-the-badge)


The `TransactionHistory` component displays a table of financial transactions, ideal for tracking activities in an internet banking application. The transactions are passed in as the `items` prop, sourced from the `transactions.json` file.

Expand All @@ -75,13 +75,13 @@ The `TransactionHistory` component displays a table of financial transactions, i
- Provides a clean and accessible layout.

**Example Usage:**
```jsx
```js
import transactions from 'path/to/transactions.json';

<TransactionHistory items={transactions} />
```

## What I Learned
![Overview](https://img.shields.io/badge/Overview-purple?style=for-the-badge)

Through the development of these components, I gained valuable insights into React's component-based architecture, prop handling, and state management. I improved my understanding of how to efficiently structure and pass data between components using JSON files. Additionally, I enhanced my skills in CSS styling, particularly in creating responsive and visually appealing user interfaces.

Expand Down

0 comments on commit 1e0d60c

Please sign in to comment.