From 722125ea2bae6c063f79413bad6f2b331f64cd60 Mon Sep 17 00:00:00 2001
From: haochizzle <36713098+haochizzle@users.noreply.github.com>
Date: Mon, 24 Jun 2024 14:56:10 +0800
Subject: [PATCH] chore: update react README (#216)
tiny documentation update:
- 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..9715af7d 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 -D @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.