Skip to content

Commit 721f25c

Browse files
author
Cassio Zen
committed
Updated Readme
1 parent 96e041c commit 721f25c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ console.log(state); // { value: 'active', nextEvents: ['TOGGLE'] }
5555
## What's up with the double parenthesis?
5656

5757
useStateMachine is a curried function because TypeScript doesn't yet support [partial generics type inference](https://github.com/microsoft/TypeScript/issues/14400).
58-
This work around allows TypeScript developers to provide a custom type for the context while still having TypeScript infer all the types used in the configuration (Like the state & transitions names, etc...).
58+
This workaround allows TypeScript developers to provide a custom type for the context while still having TypeScript infer all the types used in the configuration (Like the state & transitions names, etc...).
5959

6060
# API
6161

@@ -214,7 +214,7 @@ const [state, send] = useStateMachine<{ toggleCount: number }>({ toggleCount: 0
214214
});
215215
```
216216

217-
## About the codebase
217+
## Codebase walk-through
218218

219219
This library is build on top of React's useReducer and useEffect hooks. This video walks through creating a basic version of this library:
220220

0 commit comments

Comments
 (0)