Function patternfly_yew::hooks::id::use_prop_id
source · pub fn use_prop_id<'hook, I>(id: I) -> impl 'hook + Hook<Output = Rc<String>>
Expand description
Use an ID from properties, or random if none was provided
This value will not change when re-rendering.
§Note
When used in function components and hooks, this hook is equivalent to:
pub fn use_prop_id<I>(id: I) -> std::rc::Rc<String>
where
I: Into<Option<String>>,
{
/* implementation omitted */
}