From f6f393dca9082204c4bd3f8bd4d84b58cb061fea Mon Sep 17 00:00:00 2001 From: Valery Zinchenko Date: Mon, 13 Oct 2025 13:56:04 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 07eba22..4e3849e 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,9 @@ I was inspired by packages like [react-toastify](https://npmjs.com/package/react **`Usage.tsx`** ```tsx +import { Modal } from "./modal.ts" // Local instance. +import { ModalComponent } from "./ModalComponent.ts" + function Usage() { return
Modal.open(ModalComponent)} /> } From 51702dedc47724d881bd6ef0ed938347789f4e7a Mon Sep 17 00:00:00 2001 From: Valery Zinchenko Date: Mon, 13 Oct 2025 13:56:43 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e3849e..0b2b18d 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ This is how you disaply your modal components // Import default styles. import "react-modal-global/styles/modal.scss" -import { Modal } from "react-modal-global" +import { Modal } from "./modal.ts" // Your local Modal instance. import PopupLogin from "./PopupLogin"