From 5e94b8263df95a6f51fe24d6420cd6cedbbc879c Mon Sep 17 00:00:00 2001 From: haochizzle <36713098+haochizzle@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:21:54 +0800 Subject: [PATCH] chore: update react README - fix minor quaggle with a misplaced `;` - add polkadot/types dependency - add export statement for devEx --- packages/react/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/react/README.md b/packages/react/README.md index e6a58306..6cf3e0f3 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -10,6 +10,7 @@ You will need to add this dependency to your project first: ```bash yarn add @polkadot/extension-inject +yarn add @polkadot/types ``` ### Installing the Widget @@ -29,9 +30,11 @@ import { SygmaProtocolReactWidget } from '@buildwithsygma/sygmaprotocol-react-wi function MyDapp(){ return ( - ; - ) + + ); } + +export default MyDapp; ``` You can also pass props to the Widget component to customize it: @@ -49,4 +52,4 @@ function MyDapp(){ } ``` -You can check [here](../widget/src/widget.ts) all the available properties. \ No newline at end of file +You can check [here](../widget/src/widget.ts) all the available properties.