Function patternfly_yew::hooks::id::use_id

source ·
pub fn use_id<'hook, I>(id: I) -> impl 'hook + Hook<Output = AttrValue>
where I: Into<Option<AttrValue>> + 'hook,
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_id<I>(id: I) -> AttrValue
where
    I: Into<Option<AttrValue>>,
{
    /* implementation omitted */
}