Skip to content

Commit

Permalink
Nextjs: App router support for HMSPrebuilt (#1690)
Browse files Browse the repository at this point in the history
context for app router
  • Loading branch information
KaustubhKumar05 authored Jul 31, 2023
1 parent 6a55504 commit 370c2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/javascript/v2/quickstart/prebuilt-quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default App;

<Tab id="add-component-1">

For Next.js, you can add the Prebuilt component to your `pages/index.js` file:
For Next.js, you can add the Prebuilt component to your `pages/index.js` file. If you have opted for app router during initialization, you can add the snippet in the `app/page.js` file. Depending on the initialization configuration, the files can be in typescript. The `src` directory is also optional and only affects the file paths:

```jsx title="pages/index.js"
"use client";
Expand Down

0 comments on commit 370c2c8

Please sign in to comment.