Remove lower case components that use the paran syntax (#551)
* chore: remove lowercase components * chore: add docs are lowercase components * docs: also add docs around lowercase components in current scope
This commit is contained in:
1 parent
d4d5d2733e
commit
38e8745db9
5 files changed
+56
-46
No files matched your search
+2
-2
@@ -73,7 +73,7 @@ pub fn app(cx: Scope<()>) -> Element {
|
||||
}
|
||||
}
|
||||
ul { class: "todo-list",
|
||||
filtered_todos.iter().map(|id| rsx!(todo_entry( key: "{id}", id: *id, todos: todos )))
|
||||
filtered_todos.iter().map(|id| rsx!(TodoEntry { key: "{id}", id: *id, todos: todos }))
|
||||
}
|
||||
(!todos.is_empty()).then(|| rsx!(
|
||||
footer { class: "footer",
|
||||
@@ -111,7 +111,7 @@ pub struct TodoEntryProps<'a> {
|
||||
id: u32,
|
||||
}
|
||||
|
||||
pub fn todo_entry<'a>(cx: Scope<'a, TodoEntryProps<'a>>) -> Element {
|
||||
pub fn TodoEntry<'a>(cx: Scope<'a, TodoEntryProps<'a>>) -> Element {
|
||||
let is_editing = use_state(&cx, || false);
|
||||
|
||||
let todos = cx.props.todos.get();
|
||||
|
||||
Reference in new issue
Block a user