parent_child example

This commit is contained in:
Greg Johnston 2024-02-21 11:06:44 -05:00
parent 5bc8c4e0d3
commit 524ed395fa
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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,