Various typos/grammar/rewording
This commit is contained in:
1 parent
f66cda4bed
commit
5747e00b27
50 files changed
+168
-168
No files matched your search
@@ -1,14 +1,14 @@
|
||||
//! Example: Children
|
||||
//! -----------------
|
||||
//!
|
||||
//! Dioxus supports passing children in from the parent. These children are allocated in the parent and just forced
|
||||
//! into the child. Components that pass in children may not be safely memoized, though in practice its rare for a
|
||||
//! Dioxus supports passing children in from the parent. These children are allocated in the parent and just passed
|
||||
//! into the child. Components that pass in children may not be safely memoized, though in practice it's rare for a
|
||||
//! change in a parent to not result in a different set of children.
|
||||
//!
|
||||
//! In Dioxus, children can *only be a list*. Unlike React, you cannot pass in functions or arbitrary data. This is
|
||||
//! partially a limitaiton in having static types, but is rather intentional to encourage the use of attributes where
|
||||
//! partially a limitation of having static types, but is rather intentional to encourage the use of attributes where
|
||||
//! arbitrary child data might normally be used. Check out the `function driven children` example for how to adopt your
|
||||
//! React pattern for Dioxus' semantics.
|
||||
//! React pattern to Dioxus' semantics.
|
||||
//!
|
||||
//! Dioxus will let you use the `children` method more than once - and it's semantically *okay* - but you'll likely
|
||||
//! ruin your page if you try to clone elements in this way. Under the hood, Dioxus shares a "mounted ID" for each node,
|
||||
|
||||
Reference in new issue
Block a user