mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-14 00:27:12 +00:00
parent_child example
This commit is contained in:
parent
5bc8c4e0d3
commit
524ed395fa
2 changed files with 6 additions and 5 deletions
8
TODO.md
8
TODO.md
|
@ -2,15 +2,17 @@
|
||||||
- [x] counter
|
- [x] counter
|
||||||
- [x] counters
|
- [x] counters
|
||||||
- [x] fetch
|
- [x] fetch
|
||||||
- [ ] ErrorBoundary
|
|
||||||
- [x] todomvc
|
- [x] todomvc
|
||||||
- [ ] parent\_child
|
- [x] error_boundary
|
||||||
|
- [x] parent\_child
|
||||||
|
- [ ] on: on components
|
||||||
- [ ] router
|
- [ ] router
|
||||||
- [ ] slots
|
- [ ] slots
|
||||||
- [ ] hackernews
|
- [ ] hackernews
|
||||||
- [ ] counter\_isomorphic
|
- [ ] counter\_isomorphic
|
||||||
- [ ] todo\_app\_sqlite
|
- [ ] todo\_app\_sqlite
|
||||||
- ssr examples
|
- other ssr examples
|
||||||
|
- [ ] error boundary SSR
|
||||||
- reactivity
|
- reactivity
|
||||||
- Signal wrappers
|
- Signal wrappers
|
||||||
- SignalDispose implementations on all Copy types
|
- SignalDispose implementations on all Copy types
|
||||||
|
|
|
@ -85,8 +85,7 @@ pub fn ButtonA(
|
||||||
#[component]
|
#[component]
|
||||||
pub fn ButtonB<F>(
|
pub fn ButtonB<F>(
|
||||||
/// Callback that will be invoked when the button is clicked.
|
/// Callback that will be invoked when the button is clicked.
|
||||||
#[prop(into)]
|
on_click: F,
|
||||||
mut on_click: F,
|
|
||||||
) -> impl IntoView
|
) -> impl IntoView
|
||||||
where
|
where
|
||||||
F: FnMut(MouseEvent) + 'static,
|
F: FnMut(MouseEvent) + 'static,
|
||||||
|
|
Loading…
Reference in a new issue