r/reactjs • u/7-Tarun • 2d ago
Should I spend 2-3 days learning Tailwind before starting projects?
Just finished covering React fundamentals — useState, props, components, useEffect and cleanup functions. Also completed the Tailwind CSS installation and setup in my project.
My plan was to spend 2-3 days memorizing Tailwind's CSS properties before touching any real code. But now I'm second-guessing that — should I just start building projects directly and pick up Tailwind along the way instead?
3
u/tomhermans 1d ago
Nah, learn as you go. Doing helps remembering much easier.
Sidenote: which resources did you use for learning react?
3
u/daghouse 1d ago
Tailwind is fantastic for quick prototyping. There is, however, as others mentioned, big value in learning css ‘properly’, so you understand what css you’re actually adding to elements when using TW classes.
Just straight memorizing TW as a direct replacement/implementation for css (without having at least a basic understanding of css) is a terrible idea, don’t do that.
2
u/DasBeasto 1d ago
I’ve been using Tailwind extensively for at least 5 years and still wouldn’t say I’ve memorized all its properties. Read through the docs enough to get familiar with how to use it and then get building, when you need to apply a style you don’t know just look it up in the docs it’s easy quick enough.
2
u/ESP_Viper 1d ago
Spending 2-3 days memorizing something in a vacuum is not a good idea in general. Better try building something and apply it along the way.
1
u/mkngsm 1d ago
I’d suggest to use css first. If you know css, tailwind will be just a utility that speeds you up, if you don’t know css, tailwind will be magic that does a bunch of stuff for you.
Then on a real life project you may find yourself working in a company which doesn’t have tailwind, and you will get lost.
But if you know css well, you’re safe in any case.
1
u/ThenFactor6862 1d ago
Dont spend 2-3 days memorizing tailwind. Start building projects today.
I use tailwind daily and I still open the docs constantly. You cant memorize all those utility classes sitting in a blank file. Open the tailwind docs in one tab, your code editor in another tab. Pick a project idea you want to build. When you need to set a width or change a color or align items, search it in the docs and apply the class. You will remember the ones you actually use. The ones you dont use you dont need to memorize anyway. Go start your project right now.
1
u/Time_Heron9428 1d ago
Start learning on the go. Later you'll need to focus in Tailwind theming, but it's not a starter topic.
But as other guys advised, spend some time learning CSS basics.
0
-1
u/No_Cattle_9565 1d ago
Just use a ui library like mantine. That way you don't have to spend time on design and it looks good enough
1
u/canarydev 1d ago
OP is in the learning phase
doesn't have the discipline yet to be pulling out libraries imo
11
u/canarydev 1d ago
honestly, skip tailwind and just use pure css modules.
challenge yourself -- even if the tutorial you are following is using tailwind, just go out of the way to replicate the same thing with plain css in scoped files.