Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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