mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
14 lines
501 B
Markdown
14 lines
501 B
Markdown
---
|
|
title: 'Replace children with a custom directive'
|
|
tweet_id: ''
|
|
thread_slug: obscure-livewire-tips
|
|
author_username: samuelstancl
|
|
images:
|
|
- 'https://cln.sh/w6vdHe/download'
|
|
created_at: 2021-04-09T17:27:56+02:00
|
|
slug: replace-children-with-a-custom-directive
|
|
---
|
|
|
|
Imagine that you have a nested component that depends on the parent state. You don't need to sync child state into parent, you just want to replace the child when the parent state changes.
|
|
|
|
You can use my custom directive for that.
|