Skip to content

Commit

Permalink
docs: add conclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrith committed Nov 15, 2023
1 parent 8ce36f0 commit 521e8e5
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion slides/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ export default function Example() {
layout: two-cols
---

# React Compound Pattern
# Context + React Compound Pattern

- make the coupling between `Input` and `ClearButton` visible for all the developers

Expand Down Expand Up @@ -876,6 +876,24 @@ url: https://friedrith.github.io/react-composition/#/8?demo=1
/>
```

---

# Conclusion

- New patterns: `cloneElement`, `render` function, `Compound` pattern
- But more important: React composition
- Composition is the most underrated pattern in React
- every time you have a new feature: React composition first

> Craftsmanship: no absolute rule, exception always exist
<style>
blockquote {
margin-top: 2rem!important;
}

</style>

---
layout: center
---
Expand Down

0 comments on commit 521e8e5

Please sign in to comment.