Skip to content

kchan-p/react-toast-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-toast-function

Reactでの一時的な通知メッセージ(Toast)関数呼び出し版
https://note.affi-sapo-sv.com/react-toast.php

ReactベースのToastを関数呼び出し経由で表示する

コンポーネントの設置

import Toast from "./toast/toast.jsx";
createRoot(document.getElementById('root')).render(
    <>
      <App>
      <Toast />
    </>
);

※制限:Toastは一つのみ考慮

Toastの表示

import { showToast } from "./toast/toast";

showToast( "メッセージ" );

デモ


開発方法

npm install
npm run dev

ビルド

npm run build

実行

作者

名前: kchan
GitHub: https://github.com/kchan-p/
Website: https://note.affi-sapo-sv.com/

ライセンス

MIT License

About

Reactでの一時的な通知メッセージ(Toast)関数呼び出し版

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published