We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e27453 + 51702de commit 594f5b6Copy full SHA for 594f5b6
README.md
@@ -43,6 +43,9 @@ I was inspired by packages like [react-toastify](https://npmjs.com/package/react
43
44
**`Usage.tsx`**
45
```tsx
46
+import { Modal } from "./modal.ts" // Local instance.
47
+import { ModalComponent } from "./ModalComponent.ts"
48
+
49
function Usage() {
50
return <div onClick={() => Modal.open(ModalComponent)} />
51
}
@@ -210,7 +213,7 @@ This is how you disaply your modal components
210
213
// Import default styles.
211
214
import "react-modal-global/styles/modal.scss"
212
215
-import { Modal } from "react-modal-global"
216
+import { Modal } from "./modal.ts" // Your local Modal instance.
217
218
import PopupLogin from "./PopupLogin"
219
0 commit comments