sycamore::prelude

Function create_node_ref

pub fn create_node_ref() -> NodeRef
Expand description

Create a new NodeRef.

The node ref does not point to anything until it is set, either by assigning it to a node in the view or by explicitly calling NodeRef::set.

ยงExample

let node_ref: NodeRef = create_node_ref();