Skip to content
This repository was archived by the owner on Nov 12, 2023. It is now read-only.

Commit 7dbfc16

Browse files
committed
6. Why build the medium clap?
1 parent e434de3 commit 7dbfc16

39 files changed

+23397
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

01-default-state.jpg

9.92 KB
Loading

02-clap-count.jpg

10.4 KB
Loading

03-clap-total.jpg

8.84 KB
Loading

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [Table of Contents](#table-of-contents)
66
- [**Section 1: Introduction**](#section-1-introduction)
77
- [**Section 2: The Medium Clap: Real-world Component for Studying Advanced React Patterns**](#section-2-the-medium-clap-real-world-component-for-studying-advanced-react-patterns)
8+
- [Why build the medium clap?](#why-build-the-medium-clap)
89
- [**Section 3: Custom Hooks: The first Foundational Pattern**](#section-3-custom-hooks-the-first-foundational-pattern)
910
- [**Section 4: The Compound Components Pattern**](#section-4-the-compound-components-pattern)
1011
- [**Section 5: Patterns for Crafting Reusable Styles**](#section-5-patterns-for-crafting-reusable-styles)
@@ -30,6 +31,29 @@ Why Advanced React Patterns
3031

3132
## **Section 2: The Medium Clap: Real-world Component for Studying Advanced React Patterns**
3233

34+
### Why build the medium clap?
35+
36+
- [How the demo showcase works](https://advanced-react-patterns-ultrasimplified.netlify.app/)
37+
38+
Building and styling the medium clap
39+
1. The default State of the Component - unclicked
40+
2. The Clap Count & Burst Shown
41+
3. The Clap Total count Show
42+
43+
![The default State of the Component - unclicked](01-default-state.jpg)
44+
45+
![The Clap Count & Burst Shown](02-clap-count.jpg)
46+
47+
![The Clap Total count Show](03-clap-total.jpg)
48+
49+
```javascript
50+
<button>
51+
<ClapIcon />
52+
<ClapCount />
53+
<CountTotal />
54+
</button>
55+
```
56+
3357
**[⬆ back to top](#table-of-contents)**
3458

3559
## **Section 3: Custom Hooks: The first Foundational Pattern**

showcase/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
.DS_Store

showcase/_redirects

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

0 commit comments

Comments
 (0)