Next.js Discord

Discord Forum

Passing multiple props

Answered
WhyFencePost (Ping Reply) posted this in #help-forum
Open in Discord
I know that this is probably so simple, but how do i pass additional data to my function?
function MobileMenu({
  content,
}: Readonly<{
  content: React.ReactNode;
}>){

thats the part that i have rn, which takes the content (the page), and i also need to pass name, type, loginstate, and image to this, and idk how.
Answered by Anay-208
function MobileMenu({
  content,
  anotherVar,
  yesAnotherVar
}: Readonly<{
  content: React.ReactNode;
  anotherVar: any;
  yesAnotherVar: any;
}>){
View full answer

3 Replies