Skip to content

Commit 594f5b6

Browse files
authored
Merge pull request #283 from FrameMuse/FrameMuse-patch-1
Update README.md
2 parents 7e27453 + 51702de commit 594f5b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ I was inspired by packages like [react-toastify](https://npmjs.com/package/react
4343

4444
**`Usage.tsx`**
4545
```tsx
46+
import { Modal } from "./modal.ts" // Local instance.
47+
import { ModalComponent } from "./ModalComponent.ts"
48+
4649
function Usage() {
4750
return <div onClick={() => Modal.open(ModalComponent)} />
4851
}
@@ -210,7 +213,7 @@ This is how you disaply your modal components
210213
// Import default styles.
211214
import "react-modal-global/styles/modal.scss"
212215

213-
import { Modal } from "react-modal-global"
216+
import { Modal } from "./modal.ts" // Your local Modal instance.
214217
215218
import PopupLogin from "./PopupLogin"
216219

0 commit comments

Comments
 (0)