Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 722125e

Browse files
authored
chore: update react README (#216)
tiny documentation update: - fix minor quaggle with a misplaced `;` - add polkadot/types dependency - add export statement for devEx
1 parent a72443e commit 722125e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/react/README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ You will need to add this dependency to your project first:
1010

1111
```bash
1212
yarn add @polkadot/extension-inject
13+
yarn add -D @polkadot/types
1314
```
1415

1516
### Installing the Widget
@@ -29,9 +30,11 @@ import { SygmaProtocolReactWidget } from '@buildwithsygma/sygmaprotocol-react-wi
2930

3031
function MyDapp(){
3132
return (
32-
<SygmaProtocolReactWidget />;
33-
)
33+
<SygmaProtocolReactWidget />
34+
);
3435
}
36+
37+
export default MyDapp;
3538
```
3639

3740
You can also pass props to the Widget component to customize it:
@@ -49,4 +52,4 @@ function MyDapp(){
4952
}
5053
```
5154

52-
You can check [here](../widget/src/widget.ts) all the available properties.
55+
You can check [here](../widget/src/widget.ts) all the available properties.

0 commit comments

Comments
 (0)