@sawport/react-sdk 1.0.11-alpha.2 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Getting Started With Sawport Widget
2
2
 
3
+ ## React Compatibility
4
+
5
+ This SDK supports React 18.x and React 19.x. If you encounter React version mismatch errors (like Error #527), please see our [React Compatibility Guide](./docs/REACT_COMPATIBILITY.md) for solutions.
6
+
7
+ **Supported React Versions:**
8
+ - React 18.0.0+
9
+ - React 19.0.0+
10
+
3
11
  ## Web Usage
4
12
  ### Pull the Sawport Widget CSS from your HTML head into your web page.
5
13
  ```html
@@ -59,8 +67,22 @@ docReady(() => sawportSDK.setSawportConfig({
59
67
 
60
68
  # Usage In REACTJS
61
69
  ## Install the SDK
70
+
71
+ **Important:** This library requires React as a peer dependency. Ensure you have a compatible React version installed.
72
+
62
73
  ```bash
74
+ # Install the SDK
63
75
  yarn add @sawport/react-sdk
76
+
77
+ # Ensure React is installed (if not already present)
78
+ yarn add react@^18.0.0 react-dom@^18.0.0
79
+ # OR for React 19
80
+ yarn add react@^19.0.0 react-dom@^19.0.0
81
+ ```
82
+
83
+ **NPM:**
84
+ ```bash
85
+ npm install @sawport/react-sdk react@^18.0.0 react-dom@^18.0.0
64
86
  ```
65
87
 
66
88
  ## Configuring The Widget