mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
16 lines
474 B
Markdown
16 lines
474 B
Markdown
---
|
|
title: 'Compose components using traits'
|
|
tweet_id: ''
|
|
thread_slug: obscure-livewire-tips
|
|
author_username: samuelstancl
|
|
images:
|
|
- 'https://cln.sh/j3Jtnw/download'
|
|
created_at: 2021-04-09T17:12:56+02:00
|
|
slug: compose-components-using-traits
|
|
---
|
|
|
|
Traits are a powerful way to reuse functionality between Livewire components.
|
|
|
|
They're generally better than component nesting, since that comes with more complexity and worse performance.
|
|
|
|
Next up: Advanced trait examples
|