pub fn use_id<T: 'static>() -> usizeExpand description
Get a unique for a given generic type.
Every component using this hook will get a different ID.
The ID does not change in between renders.
To use it inside other hooks check UseId::get_in_hook
pub fn use_id<T: 'static>() -> usizeGet a unique for a given generic type.
Every component using this hook will get a different ID.
The ID does not change in between renders.
To use it inside other hooks check UseId::get_in_hook