Skip to content

Commit 1e0d60c

Browse files
authored
Merge pull request #1 from Miro-wq/Miro-wq-patch-1
Update README.md
2 parents 6714465 + cfc724b commit 1e0d60c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The `Profile` component displays user information for a social media account. Th
2020
- Utilizes a structured layout with CSS for a clean and responsive design.
2121

2222
**Example Usage:**
23-
```jsx
23+
```js
2424
import user from 'path/to/user.json';
2525

2626
<Profile
@@ -32,7 +32,7 @@ import user from 'path/to/user.json';
3232
/>
3333
```
3434

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

3737
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`.
3838

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

4444
**Example Usage:**
45-
```jsx
45+
```js
4646
import data from 'path/to/data.json';
4747

4848
<Statistics title="Upload stats" stats={data} />
4949
<Statistics stats={data} />
5050
```
5151

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

5454
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`.
5555

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

6161
**Example Usage:**
62-
```jsx
62+
```js
6363
import friends from 'path/to/friends.json';
64-
6564
<FriendList friends={friends} />
6665
```
6766

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

7070
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.
7171

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

7777
**Example Usage:**
78-
```jsx
78+
```js
7979
import transactions from 'path/to/transactions.json';
8080

8181
<TransactionHistory items={transactions} />
8282
```
8383

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

8686
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.
8787

0 commit comments

Comments
 (0)