Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/truelines/dapper
Browse files Browse the repository at this point in the history
  • Loading branch information
haneenmahd committed Aug 19, 2022
2 parents d08530e + ddbbd4e commit 7d900c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ name.onChange = newValue => {
**Extended State**:

```ts
import { State, createState } from 'dapper';
import { State, createState } from '@thq/dapper';

class CredentialsStore extends State<string> {
verifyValue(value: string) {
Expand All @@ -75,7 +75,7 @@ class CredentialsStore extends State<string> {
}

// you can call the actions inside your state
const [name, setName, nameInstance] = createStateWith(
const name = createStateWith(
CredentialsStore('some-name')
);

Expand Down Expand Up @@ -119,7 +119,7 @@ const state = createStateWith(
### Example

```ts
import { createState } from 'dapper';
import { createState } from '@thq/dapper';

/**
* Creates a new state object and returns an array of three elements with
Expand Down

0 comments on commit 7d900c4

Please sign in to comment.