Uploaded February 2023 | Updated December 2026, 3 hours ago
Let's look at best practices for creating reusable & easily maintainable react components together by creating an example button component. You'll learn how to effectively decouple your component style from the component, so you can reuse the same style for any component you like. Also, you'll learn how to use useRef to have access to the base component anywhere you render it in your React project. We'll be using Typescript and TailwindCSS, regular JS and CSS works perfectly fine too.
⭐ Full component as example: github.com/joschan21/image-alt-generator/blob/main/src/components/ui/button.tsx
-----------
⭐ Our startup: wordful.ai
⭐ My GitHub: github.com/joschan21
The stuff I use to make my videos
Camera: amzn.to/3XcqRKO
Light: amzn.to/3Xc1yIE
Keyboard: amzn.to/3CKxnAi
Mouse: amzn.to/3CNcfcm
Microphone: amzn.to/3iybVHC
Headphones: amzn.to/3IHTTgH
thats pretty much it. Those are affiliate links so I might earn a commission if you purchase after clicking them. :^)
Let's look at best practices for creating reusable & easily maintainable react components together by creating an example button component. You'll learn how to effectively decouple your component style from the component, so you can reuse the same style for any component you like. Also, you'll learn how to use useRef to have access to the base component anywhere you render it in your React project. We'll be using Typescript and TailwindCSS, regular JS and CSS works perfectly fine too.
⭐ Full component as example: github.com/joschan21/image-alt-generator/blob/main/src/components/ui/button.tsx
-----------
⭐ Our startup: wordful.ai
⭐ My GitHub: github.com/joschan21
The stuff I use to make my videos
Camera: amzn.to/3XcqRKO
Light: amzn.to/3Xc1yIE
Keyboard: amzn.to/3CKxnAi
Mouse: amzn.to/3CNcfcm
Microphone: amzn.to/3iybVHC
Headphones: amzn.to/3IHTTgH
thats pretty much it. Those are affiliate links so I might earn a commission if you purchase after clicking them. :^)










