Skip to content

Commit 318b3af

Browse files
committed
feat: rename create_element_with_props to create_element_no_children
BREAKING CHANGE: `create_element_with_props` renamed to `create_element_no_children`
1 parent 8396ec8 commit 318b3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/element.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ crate::macro_import::wasm_bindgen_react! {
99
pub fn create_element_no_props(element_type: &JsValue) -> Element;
1010

1111
#[wasm_bindgen(js_namespace = React, js_name = createElement)]
12-
pub fn create_element_with_props(element_type: &JsValue, props: &JsValue) -> Element;
12+
pub fn create_element_no_children(element_type: &JsValue, props: &JsValue) -> Element;
1313

1414
#[wasm_bindgen(variadic, js_namespace = React, js_name = createElement)]
1515
pub fn create_element(

0 commit comments

Comments
 (0)