Skip to content

Commit

Permalink
Update README.md to be more specific for new nextjs versions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenlejoe authored Nov 18, 2023
1 parent fe75089 commit 4646c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { GoldRushProvider } from "@covalenthq/goldrush-kit";
import "@covalenthq/goldrush-kit/styles.css";
```

5. Add desired components. If you're using `next.js`, make sure you have `use client;` at the top of the file to disable Next's server component modules. Visit GoldRush's [component documentation](https://www.covalenthq.com/docs/unified-api/goldrush/kit/gold-rush-provider/) for more information.
5. Add desired components. If you're using `next.js` versions `^13.0` and are using `app` router, make sure you have `use client;` at the top of the file to disable Next's server component modules. Visit GoldRush's [component documentation](https://www.covalenthq.com/docs/unified-api/goldrush/kit/gold-rush-provider/) for more information.

```tsx
import {
Expand All @@ -51,7 +51,7 @@ import {

## Ready-to-go example

Here's a full example that you can copy-paste to get started. If you're using `next.js`, make sure you have `use client;` at the top of the file to disable Next's server component modules.
Here's a full example that you can copy-paste to get started. If you're using `next.js` versions `^13.0` and are using `app` router, make sure you have `use client;` at the top of the file to disable Next's server component modules.

```tsx
// 'use client';
Expand Down

0 comments on commit 4646c1b

Please sign in to comment.