Skip to content

Commit 08ecdc6

Browse files
authored
add correct imports to a contract
1 parent 38741fa commit 08ecdc6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/contract/readme.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# lib/contract
1+
# `contract`
22

33
## Usage
44

5+
```ts
6+
import { contract } from 'bypath';
7+
```
8+
59
Create a model in a `model.ts` file and export all effector units:
610

711
```ts
@@ -92,7 +96,7 @@ const Increment = reflect({
9296
Now you can connect the model with the page, create `index.ts` file:
9397

9498
```ts
95-
import { contract } from 'lib/contract';
99+
import { contract } from 'bypath';
96100
import * as model from './model';
97101
import * as page from './page';
98102

0 commit comments

Comments
 (0)