Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass props in link next js

<Link
    href={{
        pathname: "episodes/[id]",
        query: {
            id: episode.itunes.episode,
            title: episode.title
        }
    }}
    as={`episodes/${episode.itunes.episode}-${kebabCase(episode.title)}`}
 >
... button stuff
</Link>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #props #link #js
ADD COMMENT
Topic
Name
5+7 =