We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3209c6f commit aea9189Copy full SHA for aea9189
packages/react/README.md
@@ -59,6 +59,8 @@ const App = () => {
59
Component used to visualize BehaviorTree.
60
61
```tsx
62
+import {DevTools} from '@btree/react'
63
+
64
const App = () => (
65
<DevTools>
66
<YourPage />
@@ -69,6 +71,8 @@ const App = () => (
69
71
Or if you want to use `useTree` in App component:
70
72
73
74
75
76
const App = () => {
77
const tree = useTree({tree: AppBehavior})
78
@@ -85,6 +89,9 @@ const App = () => {
85
89
Function used to create React Context for given tree.
86
90
87
91
92
+import {nodes} from '@btree/core'
93
+import {createTreeContext, useTree} from '@btree/react'
94
88
95
const AppBehavior = nodes.root('AppBehavior', () =>
96
nodes.selector([
97
// ...
0 commit comments