useId
Syntax
import { useId } from "atomico";
const stringId = useId();Example
function component() {
const id = useId();
return <host id={id}>
<style>{`#${id}{ display: block; color: white; }`}</style>
<h1>useId</h1>
</host>;
}Last updated
Was this helpful?
