pub fn new_velement_str( tag_name: &str, attr: HashMap<&str, &str>, event_hanlders: Vec, key: Option<&str>, children: Vec, ) -> VElement { VElement::new( tag_name.to_string(), attr.into_iter() .map(|(k, v)| (k.to_string(), v.to_string())) .collect(), event_hanlders, key.map(|k| k.to_string()), children, ) }