Closed pruge closed 5 years ago
I am performing the following example. https://nextjs.org/learn/basics/create-dynamic-pages/adding-a-list-of-posts
I am having trouble changing the following syntax:
const PostLink = props => ( <li> <Link href={`/post?title=${props.title}`}> <a>{props.title}</a> </Link> </li> )
Even if I try this, it is not applied.
const PostLink = props => pug` li Link(href='/post?title=${props.title}') a #{props.title} `
How do I fix this?
Link(href='/post?title=${props.title}')
// .babelrc { "plugins": [ "transform-react-pug", "transform-react-jsx", [ "transform-jsx-classname-components", { "objects": [ "React" ] } ] ] }
Link(href='/post?title=' + props.title)
Thank you very much.
I am performing the following example. https://nextjs.org/learn/basics/create-dynamic-pages/adding-a-list-of-posts
I am having trouble changing the following syntax:
Even if I try this, it is not applied.
How do I fix this?