Skip to content

Commit

Permalink
chore: update react README
Browse files Browse the repository at this point in the history
- fix minor quaggle with a misplaced `;`
- add polkadot/types dependency 
- add export statement for devEx
  • Loading branch information
haochizzle authored Jun 19, 2024
1 parent a72443e commit 5e94b82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,9 +30,11 @@ import { SygmaProtocolReactWidget } from '@buildwithsygma/sygmaprotocol-react-wi

function MyDapp(){
return (
<SygmaProtocolReactWidget />;
)
<SygmaProtocolReactWidget />
);
}

export default MyDapp;
```

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

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

0 comments on commit 5e94b82

Please sign in to comment.