timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.55k stars 313 forks source link

JSX #277

Closed arma78 closed 1 year ago

arma78 commented 1 year ago

Hi there Custom JSX is not implemented. Can you update package to include JSX.Element rendering? toast.custom(

Hello World
);

It looks that for all types of messaging is type of string in the index.dt.s (message: Message, opts?: ToastOptions): string;

Thank you.

arma78 commented 1 year ago

Ok Resolved, it can be used thru const

export const InfoMessage = () => (

..... toast.custom(**InfoMessage**, {......
Limitless-Kode commented 1 year ago

Someone should close this issue