@trycourier/courier-react 8.0.1-beta → 8.0.3-beta

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 ADDED
@@ -0,0 +1,35 @@
1
+ # @trycourier/courier-js
2
+
3
+ The base API client and shared instance singleton for Courier's JavaScript Browser SDK.
4
+
5
+ ## Installation
6
+
7
+ ```ts
8
+ npm i @trycourier/courier-react@8.0.2-beta
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { useEffect } from 'react';
15
+ import { CourierInbox, useCourier } from '@trycourier/courier-react';
16
+
17
+ function App() {
18
+
19
+ const courier = useCourier();
20
+
21
+ useEffect(() => {
22
+ courier.auth.signIn({
23
+ userId: 'your_user_id',
24
+ jwt: 'ey...n0',
25
+ });
26
+ }, []);
27
+
28
+ return (
29
+ <CourierInbox />
30
+ );
31
+
32
+ }
33
+
34
+ export default App;
35
+ ```