::new();
/// let UseMouseInElementReturn { x, y, is_outside, .. } = use_mouse_in_element(target);
///
/// view! {
diff --git a/src/use_mutation_observer.rs b/src/use_mutation_observer.rs
index eb24c24..23802c0 100644
--- a/src/use_mutation_observer.rs
+++ b/src/use_mutation_observer.rs
@@ -28,7 +28,7 @@ cfg_if! { if #[cfg(not(feature = "ssr"))] {
/// #
/// # #[component]
/// # fn Demo() -> impl IntoView {
-/// let el = create_node_ref::
();
+/// let el = NodeRef::::new();
/// let (text, set_text) = signal("".to_string());
///
/// use_mutation_observer_with_options(
diff --git a/src/use_scroll.rs b/src/use_scroll.rs
index dc09bdd..6faa594 100644
--- a/src/use_scroll.rs
+++ b/src/use_scroll.rs
@@ -38,7 +38,7 @@ const ARRIVED_STATE_THRESHOLD_PIXELS: f64 = 1.0;
/// #
/// # #[component]
/// # fn Demo() -> impl IntoView {
-/// let element = create_node_ref::();
+/// let element = NodeRef::
::new();
///
/// let UseScrollReturn {
/// x, y, set_x, set_y, is_scrolling, arrived_state, directions, ..
@@ -63,7 +63,7 @@ const ARRIVED_STATE_THRESHOLD_PIXELS: f64 = 1.0;
/// #
/// # #[component]
/// # fn Demo() -> impl IntoView {
-/// # let element = create_node_ref::
();
+/// # let element = NodeRef::
::new();
/// #
/// let UseScrollReturn {
/// x,
@@ -101,7 +101,7 @@ const ARRIVED_STATE_THRESHOLD_PIXELS: f64 = 1.0;
/// #
/// # #[component]
/// # fn Demo() -> impl IntoView {
-/// let element = create_node_ref::
();
+/// let element = NodeRef::
::new();
///
/// let UseScrollReturn {
/// x, y, set_x, set_y, ..
@@ -129,7 +129,7 @@ const ARRIVED_STATE_THRESHOLD_PIXELS: f64 = 1.0;
/// #
/// # #[component]
/// # fn Demo() -> impl IntoView {
-/// # let element = create_node_ref::
();
+/// # let element = NodeRef::
::new();
/// #
/// let UseScrollReturn {
/// x, y, set_x, set_y, ..
@@ -153,7 +153,7 @@ const ARRIVED_STATE_THRESHOLD_PIXELS: f64 = 1.0;
/// #
/// # #[component]
/// # fn Demo() -> impl IntoView {
-/// # let element = create_node_ref::
();
+/// # let element = NodeRef::
::new();
/// #
/// let (smooth, set_smooth) = signal(false);
///
diff --git a/src/use_websocket.rs b/src/use_websocket.rs
index 11b97de..e12f819 100644
--- a/src/use_websocket.rs
+++ b/src/use_websocket.rs
@@ -168,11 +168,11 @@ use web_sys::{BinaryType, CloseEvent, Event, MessageEvent, WebSocket};
/// # #[derive(Clone)]
/// # pub struct WebsocketContext {
/// # pub message: Signal