They Finally Released This Toast Library

  Рет қаралды 96,606

Josh tried coding

Josh tried coding

Күн бұрын

Toast notifications are little messages that pop up for any success, error, or loading events. Their only purpose is to let users know what is currently happening in your app. This one might just be my new favorite.
Sonner 1.0 Release: sonner.emilkow...
-- my links
Discord: / discord
GitHub: github.com/jos...

Пікірлер: 104
@saar5947
@saar5947 Жыл бұрын
I love how much effort you put in, all for just a Toast library. Keep it up.
@himurakenshin9875
@himurakenshin9875 Жыл бұрын
😂
@sujjeee
@sujjeee Жыл бұрын
Hey josh can you please make video on multi tenancy?. How to implement it with next js 13. Please I'm waiting it for so longgg.
@sohansingh2022
@sohansingh2022 Жыл бұрын
Yes please
@adlerspencer
@adlerspencer Жыл бұрын
👍
@leodlm
@leodlm Жыл бұрын
Yessss
@rahathosen8441
@rahathosen8441 Жыл бұрын
Yeah, with postgresql
@cslearn3044
@cslearn3044 Жыл бұрын
What is multi tenancy
@quickkcare605
@quickkcare605 Жыл бұрын
00:04 Sonor 1.0 is a new tool for easily creating toast notifications 00:40 React Hot Toast and Shad CN's built-in toast offer the best of both worlds. 01:18 React Toastify does not match the style of the UI library 01:53 The toast API in the UI library I prefer has a different and more customizable structure compared to React Hot Toast. 02:27 The API is similar to React Hot Toast. 03:03 Toasts are rendered based on a state that is mounted to true. 03:38 React Query is a library that works well with toast notifications. 04:14 React Query and TOS Notification Library Integration
@rjwhite4424
@rjwhite4424 Жыл бұрын
dude you literally rock. You tell me what's new and poppin in the npm world and it only makes my life easier when developing
@JerrenT
@JerrenT Жыл бұрын
code animation at 3:22 is really nice. good stuff
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Thanks for noticing, really like the style too
@Chris-zt4ol
@Chris-zt4ol Жыл бұрын
Love the fact that it has a headless option but keeps the animation and expand functionality - something that always made hot toast very hard to customize
@opm_dev
@opm_dev Жыл бұрын
LOL, I just used it today unknowingly that it was actually new, but yeah it is a really nice library to work with, easy to make, and style.
@radjee8600
@radjee8600 Жыл бұрын
As usual very clean thoughts about a precise subject, thanks man for your good work !
@fabre6733
@fabre6733 Жыл бұрын
FYI, onSuccess and onError is going to be deprecated in react-query future versions
@xhurish
@xhurish Жыл бұрын
The biggest thing sonner has over shad cn is the fact that you can have multiple toasts and that when you hover they read out like that, other than thst no reason to use it over shads as the shads one is by fefault linked to your color scheme and can also take a description besides tbe title
@ParkourGrip
@ParkourGrip Жыл бұрын
Does it do anything to make sure the toasts disapear when you navigate to a new screen? I usually wrap react-tostify into my own toast solution. It consists of a ToastProvider component inside witch one can render toasts using "const toast = useToast(); toast.error('Test!');" The trick is that all toasts that got spawned inside a ToastProvider automaticaly get closed when that provider is unmounted. This way i can make sure that every screen of the aplication uses a different toast provider and i never have to think about manualy closing toasts again.
@codewithguillaume
@codewithguillaume Жыл бұрын
Dude I love this lib !
@LC12345
@LC12345 Жыл бұрын
Josh only reviews German-named packages by this point
@Nobodylihshdheuhdhd
@Nobodylihshdheuhdhd Жыл бұрын
​@@ChichaGadhow is it islamic lmao
@jonathanrees47
@jonathanrees47 Жыл бұрын
Great video! Having toast notifications managed so elegantly with one library is an easy win right there. I wish Angular had the same kind of UI library support that React has.
@mangoman-vx4pz
@mangoman-vx4pz 5 ай бұрын
True it hurts😂
@RolandAyala
@RolandAyala 10 ай бұрын
Amazing how many people don't seem to realize shadcn is just tw styled radix, or talk about it like is a component library.
@directornovela7774
@directornovela7774 Жыл бұрын
This was really helpful man, thanks a lot.
@dMDzn
@dMDzn Жыл бұрын
Hi, Josh. Is it possible to implement this in a "server side" fasion? If I were to follow similar methods as your TRPC/Quill tutorial and I say have a route in the /api folder that creates a user during which an async request is sent to check if an email address already exists - what way would you send a custom validation message back to the client and display a toast? Would I need to throw a new trpc.TRPCError() or send back a custom error code and catch it on the client?
@joshtriedcoding
@joshtriedcoding Жыл бұрын
tRPC has the same onSuccess and onError callbacks as react query, those really are the ideal place for toasts
@dMDzn
@dMDzn Жыл бұрын
@@joshtriedcoding I downloaded your project and just discovered this. Many thanks for your help.
@wglint7509
@wglint7509 Жыл бұрын
Someone know how can we make animation code like this video in 3:21 or 3:31 ? Thanks in advance for answer ;) and great video like everytime ! And the better toast UI is toastify for me, i have promise toast and it's very easy to use !
@1weiho
@1weiho Жыл бұрын
I think is Snappify!
@dipteshchoudhuri
@dipteshchoudhuri Жыл бұрын
Have you ever yried out Mantine UI? Would be great if you did a video on it.
@Sundae-o5f
@Sundae-o5f Жыл бұрын
Thanks for sharing!
@samobanijesu
@samobanijesu 9 ай бұрын
When I used this sooner library, the toast displays along with it's Id. How do I work around that??
@amraromoro
@amraromoro Жыл бұрын
thanks Josh for the big efforts i just wonder if i could use NextJs as a Microservices and Microfronts in the same time as i could build a service in one project with its database and then start a new service and connect them together with event-driven architecture for example is it possible.
@Arab_motivation_video
@Arab_motivation_video Жыл бұрын
Sounds cool gonna try this!
@XboxArqain
@XboxArqain Жыл бұрын
Notistack doesn't get a mention?
@kazi-shariful-islam
@kazi-shariful-islam Жыл бұрын
This is really awesome
@interceptorghost1149
@interceptorghost1149 Жыл бұрын
Can we use sonner in Next js 13 app directory app? I faced some errors when trying to using it
@piotrrodzen772
@piotrrodzen772 Жыл бұрын
Loving how easy is to use it
@bearbricknik
@bearbricknik Жыл бұрын
Great video! Do you know if you can use custom styling with tailwind classes? As of right now I think you can only specify hex color codes under style for for example the background color but since I am using a light and dark mode, I configured a specific color for it in my tailwind.config named bg-background-theme but trying to apply this color doesnt work, at least for me
@ernst367
@ernst367 Жыл бұрын
Thanks Josh, will give a try soon
@MathewNiania
@MathewNiania Жыл бұрын
Word of warning: onSuccess and onError API is being depreciated
@EIsenah
@EIsenah Жыл бұрын
It already deprecated in the latest version
@rz_7890
@rz_7890 Жыл бұрын
Hi josh, do you know how to implement page transition in nextjs 13 app router? I've been searching but what I found mostly makes Layout into a client component ("use client").
@MirkoVukusic
@MirkoVukusic Жыл бұрын
Maybe I'm too old, but toast library is definitely beyond the line I draw for unnecessary dependencies. It's so simple to write one custom for your project. I don't think basic one is more than 20 lines of code.
@joshtriedcoding
@joshtriedcoding Жыл бұрын
It starts getting more complicated once you get to the stacking part and making them all the same height, it does involve a tad more logic
@nickwoodward819
@nickwoodward819 Жыл бұрын
100% with you on this. But it's also given me the idea to publish a fizz-buzz library to make a similar point in interviews, so there's that :)
@rand0mtv660
@rand0mtv660 Жыл бұрын
Basic one does basic things. There are some not so edge cases to solve while doing toast notifications and it's definitely not 20 lines of code when you count logic and styling. I'm not saying it's hard to do, but why bother when someone else invested a lot of time doing that already?
@MirkoVukusic
@MirkoVukusic Жыл бұрын
​@@rand0mtv660, well, for standard reasons some avoid dependencies inflation. Optimizing code (most use basic features but install library with full features), easier maintenance (library breaking changes or EOL), learning (people dont know how to do basic stuff lately, or even how they work). Jist checked my toast code on the last project... typescript (tsx), tailwind, 4 styles, stacking, transitions... 100 lines of code, mostly tsx
@thalesrodriguescardoso
@thalesrodriguescardoso 9 ай бұрын
Dude react hot toast is crazy light lol it makes NO sense to waste time building what has been built a billion times and tested.
@Pareshbpatel
@Pareshbpatel 8 ай бұрын
Nice overview of React Toast Notification Libraries, in particular, sonner 1.0. Thanks, Josh {2025-06-07}
@lovrozagar3729
@lovrozagar3729 Жыл бұрын
Josh, please do a headless Shopify/Bigcommerce full project tutorial with auth, payment and deployment. Currently there is no in-depth tutorial for this anywhere on youtube. Thanks 😀
@otaviofaria5893
@otaviofaria5893 Жыл бұрын
Hi, I want to learn more about how to create components and I love the way you did it, could you teach me or make a video on how to do it? This way you can render using a function I liked
@allayorquvondiqov5778
@allayorquvondiqov5778 3 ай бұрын
Really cool. I want this😍
@jayantrohila
@jayantrohila Жыл бұрын
Can you create a video tutorial for hoting next.js 13 on aws with every reneder stratigy efficently.
@stevebendersky2056
@stevebendersky2056 Жыл бұрын
Does useSWR also has this kind of error as you showed for react-query?
@cherryfuchs
@cherryfuchs Жыл бұрын
Another amazing video, Josh. Congratulations!! Do you have a toast library recomendation for React Native?
@mnikk1
@mnikk1 Жыл бұрын
Also we can make this synergy between axios/ky and toats library.
@marcofaquim
@marcofaquim Жыл бұрын
Mr Josh we need the nextjs shopify full tutorial
@rodolpheE
@rodolpheE Жыл бұрын
does it work in server components?
@HorizonHuntxr
@HorizonHuntxr Жыл бұрын
This is good but unless it supports promise toasts it doesn't make much sense to change from your existing toast library
@siya.abc123
@siya.abc123 Жыл бұрын
Lol I just got done customizing my Shadcn toast component. Let me check Sonner out.
@madebytl
@madebytl 8 ай бұрын
Can i use them in html code only?
@sattlerdevelopment
@sattlerdevelopment Жыл бұрын
this for vue would be epic
@PeriklesPeriklesoglu
@PeriklesPeriklesoglu Жыл бұрын
thank you
@楊冠柏-q6v
@楊冠柏-q6v Жыл бұрын
Aren't onError and onSuccess deprecated?
@will-g9n1l
@will-g9n1l Жыл бұрын
Whats the name of the sketching tool? 🤔
@leonardocastro1568
@leonardocastro1568 Жыл бұрын
Is there a similar library for Vue.js?
@raed5463
@raed5463 Ай бұрын
Does it work on react native ?
@toshirohitsugaya1465
@toshirohitsugaya1465 Жыл бұрын
Gotta give it a try.
@SumitSingh-wz3wt
@SumitSingh-wz3wt Жыл бұрын
In starting I was appreciating shadcn/ui but I think this library misses a lot of components. As i use this library for building one of my company projects and It took way more efforts than i thought off. It's s not mature yet, misses lot of components i.e , Select with search and clear functionality there is command instead bit it has fix size for selecting i.e, 340px then I have to manually add events for that as per screen size, Year picker are missing in Date picker component . It's quite completed to implement searching, sorting & filters as it's use raw tanstack table and there is lot more which i can't even write. But it's good for building small projects and learning purpose. I won't recommend this library for building organisation project you will run into trouble due to projects requirements. 😊😊
@amansagar4948
@amansagar4948 Жыл бұрын
Does it also work with react native
@ritikkumarsharma4798
@ritikkumarsharma4798 9 ай бұрын
No
@iUmerFarooq
@iUmerFarooq Жыл бұрын
Is this available for Vue/Nuxt?
@tr.j4079
@tr.j4079 Жыл бұрын
It’s kinda buggy unfortunately.
@adedimolao9094
@adedimolao9094 Жыл бұрын
So easy to use🔥
@preciousegwuenu2938
@preciousegwuenu2938 Жыл бұрын
wow!
@husseinkizz
@husseinkizz Жыл бұрын
Am trying out now now!
@mriswan5806
@mriswan5806 Жыл бұрын
Bro can next u give Reference library chart and lottie files animation for use on library lottie-react
@noNullMoments
@noNullMoments Жыл бұрын
Meh, ever heard of notiflic
@vitvitvitvitvitvitvitvit
@vitvitvitvitvitvitvitvit Жыл бұрын
oh, i did'nt about on error stuff of react-query. Holy shit, i always handle the errors in .catch()
@jellyfish1772
@jellyfish1772 Жыл бұрын
ok i am using it since shadcn added it
@luckysolanki9440
@luckysolanki9440 Жыл бұрын
Can you please make a clone video using Nextjs13.4, mongodb and JS instead of Ts, please, I want to shift from page to app router, but I use these technologies, and I can't find a better teacher ever and anywhere, so please make a clone video, like i want to use infinite scrolling and 'use client' and 'use server', but you use TS in your videos, so please make a clone like youtube or amazon, please
@QueeeeenZ
@QueeeeenZ Жыл бұрын
I hate those toast notifications, they are so annoying. They're bad UX
@dfordemo981
@dfordemo981 Жыл бұрын
cool
@vellankiindeevar5530
@vellankiindeevar5530 Жыл бұрын
bro use alpine js pls
@raymondmichael4987
@raymondmichael4987 Жыл бұрын
Wow 😮; Now I need to refactor code 😊
@naranyala_dev
@naranyala_dev Жыл бұрын
tiny lib review, more like this one
@eesaaphilips9271
@eesaaphilips9271 Жыл бұрын
Maybe I'm missing something here, but why are toasts such a big deal? For my solidjs/react projects I just write my own; it's a few lines of css and two components. These libraries seem a bit overengineered imo
@asimalqasmi7316
@asimalqasmi7316 Жыл бұрын
First
@devalberto
@devalberto 6 ай бұрын
Can this be used with Vue js?
@nomadshiba
@nomadshiba Жыл бұрын
cool
The ultimate guide to web performance
6:43
Beyond Fireship
Рет қаралды 476 М.
Create Custom Alert in React Native
27:10
Code React
Рет қаралды 533
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
The Better Way to Manage React State
7:38
Josh tried coding
Рет қаралды 40 М.
Error Handling in Server Actions Next.js (Incl. Toasts!)
10:30
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,7 МЛН
These 2 UI Libraries Are The Perfect Combo
5:03
Josh tried coding
Рет қаралды 155 М.
Coding a FULL App with AI (You Won't Believe This)
15:19
Creator Magic
Рет қаралды 411 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 970 М.
I Found a Faster Way to Build Next.js APIs
15:57
Josh tried coding
Рет қаралды 36 М.
Toast Notifications in Reactjs (react-toastify)
8:25
Web Dev Dev Dev
Рет қаралды 89 М.
The Easy Way to Design Top Tier Websites
11:54
Sajid
Рет қаралды 727 М.