Skip to content

Commit aea9189

Browse files
committed
📘 add missing imports
1 parent 3209c6f commit aea9189

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/react/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ const App = () => {
5959
Component used to visualize BehaviorTree.
6060

6161
```tsx
62+
import {DevTools} from '@btree/react'
63+
6264
const App = () => (
6365
<DevTools>
6466
<YourPage />
@@ -69,6 +71,8 @@ const App = () => (
6971
Or if you want to use `useTree` in App component:
7072

7173
```tsx
74+
import {DevTools} from '@btree/react'
75+
7276
const App = () => {
7377
const tree = useTree({tree: AppBehavior})
7478

@@ -85,6 +89,9 @@ const App = () => {
8589
Function used to create React Context for given tree.
8690

8791
```tsx
92+
import {nodes} from '@btree/core'
93+
import {createTreeContext, useTree} from '@btree/react'
94+
8895
const AppBehavior = nodes.root('AppBehavior', () =>
8996
nodes.selector([
9097
// ...

0 commit comments

Comments
 (0)