LinkDisplay is employed for seamless navigation between pages.


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...">

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