Skip to content

Commit

Permalink
chore: update react README (#216)
Browse files Browse the repository at this point in the history
tiny documentation update: 

- fix minor quaggle with a misplaced `;`
- add polkadot/types dependency 
- add export statement for devEx
  • Loading branch information
haochizzle authored Jun 24, 2024
1 parent a72443e commit 722125e
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 -D @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 722125e

Please sign in to comment.