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

chore: update react README #216

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading