Skip to content

route specific components are not rendering in a react app #74

@arunkumar413

Description

@arunkumar413

For react apps the route specific components are not rendering. Seems like as the URL changes in the URL bar, the nutria system is trying to render a HTML file instead of react component. I tried the below react rotuer config but the component doesn't render.

export const AppRouter = createBrowserRouter(
  [
    {
      path: "dist/index",
      element: <Home />,
    },
    {
      path: "dist/about",
      element: <About />,
    },
    {
      path: "dist/contact",
      element: <Contact />,
    },
  ]

);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions