Just for the note, I'm not beginner in web development, quite experienced, but i still love your work on VanillaJS. Thanks for supporting multiple technologies for years
Brad is one of the few Developers I am always keen to learn from. Each time a new technology comes, I usually wonder how he will tackle it. The man has range in his understanding of the web.
Just completed! Thanks Brad! Given your new video on React 19, it could be cool to see a version of this project in React 19 when it releases that explores some of the new changes / features.
Brad is my best tutor though haven't been able fo buy his courses, much I learnt up to where I am simply got it from him. He has the best teaching style. I only have a simple request if he could do some Golang tutorials and the Gin framework in Go. Thanks good tutor. May God bless you.
Just finished your React course and wanted to practice my skills by making a filter component with pills and search for a large async list. This’ll come in handy if I get stuck/need inspiration. Thanks Brad!
Hey there brad , can you make it real world website like connect it with database . we as beginners just follow along the projects and dont get the idea how things actually work.
Please make this kind of project using laravel and React using inertia.js. there are no more free resources doing that specially laravel and react. love your tuts btw.
Thanks for this video. I learned JS mostly from your videos. Am wondering If this is the time to move to new Gen ai, and learn NLP LLM etc.. Please advise..
@umairulislam9048 The class "added" is used to keep track of which buttons have already been clicked on (or which products have already been "added to card"). Since buttons are elements that can't store information about user events, they need to be tagged in some way when the user clicks on them. This tag can then be used in a conditional JS statement to check if the buttons have already been clicked on. This essentially turns the buttons into checkboxes from a JS point of view, if that makes sense (checked/unchecked). Of course, it's not necessary to use the class name "added" to check the button status, you could use one of the existing Tailwind classes on the button if you prefer (like the bg-red-600 class for example), or you could use a custom HTML property instead, like data-added-to-cart="true", etc. But using a class name is the simplest way to do this. Hope all that makes sense!
Lets's say i am using tailwind css. So why do i need to add extra classList.add()? I could just directly paste any tailwind component in the div.innerHTML or write my own like Hey right?
@mohammadfazlerabbi7712 Yes, of course you could write your own component instead, but in that case you will need to write some extra CSS rules to style your custom classes. Brad is adding existing Tailwind classes in order to avoid writing extra CSS :) But, yes, you can insert custom code as needed. Remember there is always more than one way to do things in JavaScript.