Тёмный

They Finally Released This Toast Library 

Josh tried coding
Подписаться 161 тыс.
Просмотров 85 тыс.
50% 1

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...

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 102   
@saar5947
@saar5947 Год назад
I love how much effort you put in, all for just a Toast library. Keep it up.
@himurakenshin9875
@himurakenshin9875 Год назад
😂
@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
@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
@JerrenT
@JerrenT Год назад
code animation at 3:22 is really nice. good stuff
@joshtriedcoding
@joshtriedcoding Год назад
Thanks for noticing, really like the style too
@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
@MihirAmanRaj
@MihirAmanRaj Год назад
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.
@codewithguillaume
@codewithguillaume Год назад
Dude I love this lib !
@LC12345
@LC12345 Год назад
Josh only reviews German-named packages by this point
@Nobodylihshdheuhdhd
@Nobodylihshdheuhdhd 11 месяцев назад
​@@ChichaGadhow is it islamic lmao
@fabre6733
@fabre6733 Год назад
FYI, onSuccess and onError is going to be deprecated in react-query future versions
@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
@RolandAyala
@RolandAyala 6 месяцев назад
Amazing how many people don't seem to realize shadcn is just tw styled radix, or talk about it like is a component library.
@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
@cherryfuchs
@cherryfuchs Год назад
Another amazing video, Josh. Congratulations!! Do you have a toast library recomendation for React Native?
@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.
@radjee8600
@radjee8600 Год назад
As usual very clean thoughts about a precise subject, thanks man for your good work !
@bearbricknik
@bearbricknik 11 месяцев назад
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
@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.
@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 Месяц назад
True it hurts😂
@directornovela7774
@directornovela7774 Год назад
This was really helpful man, thanks a lot.
@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 😀
@dipteshchoudhuri
@dipteshchoudhuri Год назад
Have you ever yried out Mantine UI? Would be great if you did a video on it.
@piotrrodzen772
@piotrrodzen772 Год назад
Loving how easy is to use it
@Pareshbpatel
@Pareshbpatel 4 месяца назад
Nice overview of React Toast Notification Libraries, in particular, sonner 1.0. Thanks, Josh {2025-06-07}
@MathewNiania
@MathewNiania Год назад
Word of warning: onSuccess and onError API is being depreciated
@kamehameha38
@kamehameha38 Год назад
It already deprecated in the latest version
@Arab_motivation_video
@Arab_motivation_video 10 месяцев назад
Sounds cool gonna try this!
@siya.abc123
@siya.abc123 Год назад
Lol I just got done customizing my Shadcn toast component. Let me check Sonner out.
@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!
@SumitSingh-wz3wt
@SumitSingh-wz3wt 11 месяцев назад
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. 😊😊
@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.
@ernst367
@ernst367 Год назад
Thanks Josh, will give a try soon
@mnik0128
@mnik0128 Год назад
Also we can make this synergy between axios/ky and toats library.
@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 5 месяцев назад
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.
@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").
@otaviofaria5893
@otaviofaria5893 11 месяцев назад
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
@kazi-shariful-islam
@kazi-shariful-islam Год назад
This is really awesome
@Sundae-o5f
@Sundae-o5f Год назад
Thanks for sharing!
@HorizonHuntxr
@HorizonHuntxr Год назад
This is good but unless it supports promise toasts it doesn't make much sense to change from your existing toast library
@sattlerdevelopment
@sattlerdevelopment Год назад
this for vue would be epic
@interceptorghost1149
@interceptorghost1149 Год назад
Can we use sonner in Next js 13 app directory app? I faced some errors when trying to using it
@marcofaquim
@marcofaquim Год назад
Mr Josh we need the nextjs shopify full tutorial
@XboxArqain
@XboxArqain Год назад
Notistack doesn't get a mention?
@samobanijesu
@samobanijesu 5 месяцев назад
When I used this sooner library, the toast displays along with it's Id. How do I work around that??
@stevebendersky2056
@stevebendersky2056 Год назад
Does useSWR also has this kind of error as you showed for react-query?
@jayantrohila
@jayantrohila Год назад
Can you create a video tutorial for hoting next.js 13 on aws with every reneder stratigy efficently.
@PeriklesPeriklesoglu
@PeriklesPeriklesoglu 11 месяцев назад
thank you
@toshirohitsugaya1465
@toshirohitsugaya1465 Год назад
Gotta give it a try.
@tr.j4079
@tr.j4079 9 месяцев назад
It’s kinda buggy unfortunately.
@vitvitvitvitvitvitvitvit
@vitvitvitvitvitvitvitvit Год назад
oh, i did'nt about on error stuff of react-query. Holy shit, i always handle the errors in .catch()
@will-g9n1l
@will-g9n1l Год назад
Whats the name of the sketching tool? 🤔
@noNullMoments
@noNullMoments Год назад
Meh, ever heard of notiflic
@preciousegwuenu2938
@preciousegwuenu2938 Год назад
wow!
@husseinkizz
@husseinkizz Год назад
Am trying out now now!
@rodolpheE
@rodolpheE Год назад
does it work in server components?
@mriswan5806
@mriswan5806 Год назад
Bro can next u give Reference library chart and lottie files animation for use on library lottie-react
@leonardocastro1568
@leonardocastro1568 9 месяцев назад
Is there a similar library for Vue.js?
@jellyfish1772
@jellyfish1772 9 месяцев назад
ok i am using it since shadcn added it
@iUmerFarooq
@iUmerFarooq Год назад
Is this available for Vue/Nuxt?
@madebytl
@madebytl 4 месяца назад
Can i use them in html code only?
@楊冠柏-q6v
@楊冠柏-q6v Год назад
Aren't onError and onSuccess deprecated?
@adedimolao9094
@adedimolao9094 9 месяцев назад
So easy to use🔥
@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
@amansagar4948
@amansagar4948 11 месяцев назад
Does it also work with react native
@ritikkumarsharma4798
@ritikkumarsharma4798 5 месяцев назад
No
@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 2 месяца назад
Can this be used with Vue js?
@nomadshiba
@nomadshiba Год назад
cool
Далее
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
10 common mistakes with the Next.js App Router
20:37
Просмотров 220 тыс.
Flipping Robot vs Heavier And Heavier Objects
00:34
Просмотров 33 млн
How To Load Images Like A Pro
15:48
Просмотров 378 тыс.
This might change how we build UI forever
15:14
Просмотров 136 тыс.
How Did I Not Know This TypeScript Trick Earlier??!
9:11
You might not need useEffect() ...
21:45
Просмотров 163 тыс.
UI Libraries Are Dying, Here's Why
13:28
Просмотров 315 тыс.
This UI component library is mind-blowing
8:23
Просмотров 689 тыс.
These New Components Blew My Mind
7:06
Просмотров 91 тыс.
No Code App Development is a Trap
9:31
Просмотров 270 тыс.