make dioxus an optional dependancy
This commit is contained in:
1 parent
dd1d492e61
commit
e4c7218fe8
9 files changed
+300
-432
No files matched your search
@@ -15,7 +15,7 @@ pub struct DioxusState {
|
||||
}
|
||||
|
||||
impl DioxusState {
|
||||
pub fn new(rdom: &mut RealDom) -> Self {
|
||||
pub fn create(rdom: &mut RealDom) -> Self {
|
||||
rdom.insert_slab::<ElementId>();
|
||||
let root_id = rdom.root_id();
|
||||
let mut root = rdom.get_mut(root_id).unwrap();
|
||||
|
||||
Reference in new issue
Block a user