Skip to content

Commit 6e7cbd4

Browse files
committed
chore(docs): Update README and package file to include info on React 17
1 parent 58d3b49 commit 6e7cbd4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ Make sure to add the CSS imports as the last import in your index file. The exte
1616

1717
```
1818
import '@patternfly/chatbot/dist/css/main.css';
19+
1920
```
2021

22+
If you are using React 17, ChatBot currently has a dependency on [react-markdown](https://github.com/remarkjs/react-markdown) that relies on React 18 and 19. There is an older version of react-markdown that supports 17, but it does not have support for 19. You should be able to add `"react"` and `"react-dom"` of the appropriate version to the `overrides` section of your `package.json` file if you need to use ChatBot with 17.
23+
2124
## Contribution guide
2225

2326
### AI-assisted development guidelines

packages/module/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"unist-util-visit": "^5.0.0"
5151
},
5252
"peerDependencies": {
53-
"react": "^17 || ^18 || ^19",
54-
"react-dom": "^17 || ^18 || ^19"
53+
"react": "^18 || ^19",
54+
"react-dom": "^18 || ^19"
5555
},
5656
"devDependencies": {
5757
"@patternfly/documentation-framework": "6.16.0",

0 commit comments

Comments
 (0)