From 4646c1b29da3d1b9b2c53fa0e10a14617d3fe338 Mon Sep 17 00:00:00 2001 From: Joe Le <55604805+nguyenlejoe@users.noreply.github.com> Date: Fri, 17 Nov 2023 18:04:29 -0800 Subject: [PATCH] Update README.md to be more specific for new nextjs versions (#4) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a2fbf41..cfcbba64 100644 --- a/README.md +++ b/README.md @@ -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 { @@ -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';