Skip to content

Commit

Permalink
docs(readme): update
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Mar 21, 2024
1 parent 2d19ab2 commit 715c5f5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ const App = () => {
<button onClick={() => controls.back()} disabled={!controls.canBack()}>
Undo
</button>
<button onClick={() => controls.forward()} disabled={!controls.canForward()}>
<button
onClick={() => controls.forward()}
disabled={!controls.canForward()}
>
Redo
</button>
<button onClick={controls.reset}>Reset</button>
Expand Down Expand Up @@ -89,8 +92,8 @@ const App = () => {
| `controls.back` | () => void | Go back to the previous state |
| `controls.forward` | () => void | Go forward to the next state |
| `controls.reset` | () => void | Reset the state to the initial state |
| `controls.canUndo` | () => boolean | Check if can go back to the previous state |
| `controls.canRedo` | () => boolean | Check if can go forward to the next state |
| `controls.canBack` | () => boolean | Check if can go back to the previous state |
| `controls.canForward` | () => boolean | Check if can go forward to the next state |
| `controls.getHistory` | () => T[] | Get the history of the state |
| `controls.patches` | TravelPatches[] | Get the patches history of the state |
| `controls.position` | number | Get the current position of the state |
Expand Down

0 comments on commit 715c5f5

Please sign in to comment.