Capitalized prop from an external component

Hi, I came here since I didnt find in the docs something specific for this case, in Next.js we have an _app.js component which injects a component from it’s props

function MyApp({ Component, pageProps }) {
  return <Layout> 
    <Component {...pageProps} />

since I want to use all my codebase in rescript is there any way to use a ~ named argument with Capitalized letter and call it as a component?


Maybe not exactly what you are asking for, but the ReScript NextJS starter project shows how this might be done:

1 Like

oh nice example, even though IDK why one would need a router if next is filesystem based.