slow-yellowS
Refine3y ago
4 replies
slow-yellow

How to use `<AntdInferencer />` with Next.js

Hello, the examples provided in the docs for using the inferencer components is using some <Routes>,<Route> components from react-router-dom package, while we are using next.js.

What is the proper way to add Inferencer:
<Routes>
  <Route
    element={
      <ThemedLayoutV2>
        <Outlet />
      </ThemedLayoutV2>
    }>
    <Route path="admin/post" element={<AntdInferencer />}/>
    <Route path="admin/friends" element={<AntdInferencer />}/>
    ...
  </Route>
</Routes>


But for Next.js?
Was this page helpful?