Skip to content

Commit

Permalink
Better syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Feb 5, 2024
1 parent 615ae77 commit 1db0199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -49,7 +49,7 @@ function VoteButton() {
// To modify the action.
useEffect(() => setAction({ actionOption: 'downvote' }), [setAction]);

return <button disabled={!isValid} onClick={performAction}>Vote</button>
return <button disabled={!isValid} onClick={performAction}>Vote</button>;
}
```

Expand All @@ -58,15 +58,15 @@ function VoteButton() {
> For complete API reference, please refer to TypeScript definition files.
```ts
useSchemaOrgAction<Action, Request, Response>(
function useSchemaOrgAction<Action, Request, Response>(
initialAction: Action,
handler: (request: Request, values: Map<string, unknown>) => Promise<Response>
): [
Action & { actionStatus: ActionStatusType },
Dispatch<SetStateAction<Action>>
() => Promise<void>,
boolean
]
];
```

## Designs
Expand Down

0 comments on commit 1db0199

Please sign in to comment.