emoji-picker-react 3.6.1 → 3.6.2

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
@@ -2,6 +2,22 @@
2
2
 
3
3
  [Live Demo](https://stackblitz.com/edit/emoji-picker-react?file=index.js)
4
4
 
5
+
6
+ ## Try out version 4 before its official release!
7
+ Try it live: [here](https://codesandbox.io/s/floral-rgb-z2gkzp?file=/src/App.tsx)
8
+
9
+ And if it works well for you, you can add it to your app:
10
+
11
+
12
+
13
+ https://user-images.githubusercontent.com/11255103/188325308-02f336fd-e78e-4c66-b972-d481313e0a73.mov
14
+
15
+
16
+
17
+ ```
18
+ npm i emoji-picker-react --tag rc
19
+ ```
20
+
5
21
  ![Preview](/assets/captured.gif)
6
22
 
7
23
  ## What you need to know before installing?
@@ -218,3 +234,18 @@ For reference, if you only need to shim global, you can add
218
234
  ```
219
235
 
220
236
  to your index.html
237
+
238
+ ## How to avoid SSR loading of the library in Next.js
239
+
240
+ To avoid errors such as "document is not defined" on the server side, you should make sure the library is only imported on the client side. Here is how to do that:
241
+
242
+ ```javascript
243
+ import dynamic from "next/dynamic";
244
+
245
+ const Picker = dynamic(
246
+ () => {
247
+ return import("emoji-picker-react");
248
+ },
249
+ { ssr: false }
250
+ );
251
+ ```