next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Docs: Lear Next.js (Basic course)

Open GeorgiiGalechyan opened this issue 1 year ago • 0 comments

What is the improvement or update you wish to see?

Hello. Starting from this section of the documentation there is an error in the code of the Search component. Previously, the Search component contained props placeholder and looked like this:

export default function Search({ placeholder }: { placeholder: string }) {

  //...

}

But starting from the specified place of props placeholder is missing, although it should be. Inside the component, in the input tag, placeholder={placeholder} is used, which causes an error.

export default function Search( /*there should be a placeholder here*/ ) {
 
 //...

 }

p.s. I apologize in advance for my English

Is there any context that might help us understand?

I'm just taking a basic course on next.js and found a small error. That's the whole context.

Does the docs page already exist? Please link to it.

https://nextjs.org/learn/dashboard-app/adding-search-and-pagination#2-update-the-url-with-the-search-params

GeorgiiGalechyan avatar Mar 28 '24 13:03 GeorgiiGalechyan