Skip to content

Commit a96d7df

Browse files
committedJun 9, 2024
docs: Update custom paths example
1 parent 30e84bc commit a96d7df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docs/examples/custom_paths.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ The following is an example for the `PathsContext`, which allows you to modify p
1111

1212
```jsx live noInline title=MyChatBot.js
1313
const MyChatBot = () => {
14-
// setup your own paths state (!important, always initialize paths with "start")
15-
const [paths, setPaths] = React.useState(["start"]);
14+
// setup your own paths state
15+
const [paths, setPaths] = React.useState([]);
1616

1717
// example to jump to start of chat
1818
const jumpToStart = () => {

0 commit comments

Comments
 (0)