From 42fbf1968a9f6fcba5910e790f0114ecd44c9942 Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Tue, 19 Mar 2024 15:39:50 -0500 Subject: [PATCH] Update React SDK install instructions --- packages/react-sdk/README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/react-sdk/README.md b/packages/react-sdk/README.md index 2a9c61b6..2e60776f 100644 --- a/packages/react-sdk/README.md +++ b/packages/react-sdk/README.md @@ -21,15 +21,24 @@ These hooks are mostly bindings to the [`xmtp-js` SDK](https://github.com/xmtp ## Install +The XMTP React SDK requires React, the XMTP JS SDK, and several content types. + +**NPM** + +```bash +npm install react @xmtp/react-sdk @xmtp/xmtp-js @xmtp/content-type-reaction @xmtp/content-type-remote-attachment @xmtp/content-type-reply +``` + +**PNPM** + ```bash -# npm -npm install @xmtp/react-sdk +pnpm install react @xmtp/react-sdk @xmtp/xmtp-js @xmtp/content-type-reaction @xmtp/content-type-remote-attachment @xmtp/content-type-reply +``` -# pnpm -pnpm install @xmtp/react-sdk +**Yarn** -# yarn -yarn add @xmtp/react-sdk +```bash +yarn add react @xmtp/react-sdk @xmtp/xmtp-js @xmtp/content-type-reaction @xmtp/content-type-remote-attachment @xmtp/content-type-reply ``` ### Buffer polyfill