<LinkDisplay>

LinkDisplay is employed for seamless navigation between pages.

Example:

import { Link, LinkDisplay } from '@magicjs.dev/frontend';

<LinkDisplay pageId="homepage">
    {({ url }) => (
        // In 'url', you will get the page link.
        
        <Link to={url} className="//className Here...">
            Home
        </Link>
    )}
</LinkDisplay>

The pageId in the above snippet is an identifier previously configured in the "config.json" file for the corresponding page.

Click here to refer GitHub.

Last updated