normalize
This function uses the @adraffy/ens-normalize package to normalize a domain string.
function normalize(_name: string): string
Usage
MyComponent.tsx
import { lnr } from '@linagee/lnr-ethers-react';
const MyComponent = () => {
const domainString = "0xHal";
return (
<div>
<h1>{lnr.utils.normalize(domainString)}</h1>
</div>
);
};
export default MyComponent;
The above code will render the following:
0xhal
Parameters
- _name (string): A domain string to be normalized.
Returns
- (string): The normalized domain string.