All Questions

Sarah Chen·Asked 2 months ago

How to centre a div?

I've been trying to centre a div both horizontally and vertically for hours. I've tried margin: auto, text-align: center, and various other approaches but nothing seems to work consistently. What's the most reliable modern approach?

142 votes12 answers15420 views
Jordan Taylor·Asked 1 month ago

ReactJs or NextJs for beginners i ask for advice

I'm new to web development and want to learn React. Should I start with plain React or jump straight into Next.js? I've heard Next.js is more opinionated but provides better structure. What do experienced developers recommend?

38 votes15 answers6234 views
Priya Patel·Asked 1 month ago

How to set up Tailwind CSS v4 with Next.js?

I'm trying to set up Tailwind CSS v4 in my Next.js project but the configuration seems different from v3. The @tailwind directives aren't working. What's the correct way to configure Tailwind v4 with the new @import syntax?

23 votes4 answers1245 views
David Lee·Asked 1 month ago

TypeScript generics explained with examples

I understand basic TypeScript but generics confuse me. Can someone explain with practical examples when and why I'd use generics? I've seen code like <T extends Something> and have no idea what it means.

19 votes6 answers2103 views