Darius Cosden 🧑🏻‍💻
cosden.dev
Darius Cosden 🧑🏻‍💻
@cosden.dev
Teaching React at @cosdensolutions · 170k subs · Building an AI learning platform
My most viewed YT short (1.2m views) is me roasting my own code

Every day there are devs out there who see the horrendous code I wrote 8+ years ago
December 9, 2025 at 11:04 AM
Something I want to do more of on my YT channel is to provide value

I learnt this many years ago but didn't keep it top of mind lately

Always start a video with "what value am I giving to the viewer?"

You'll find that will make them watch and come back for more
December 8, 2025 at 10:58 AM
Currently not vibe coding in the north of Sweden 🧖🏻‍♂️
December 6, 2025 at 6:46 PM
I believe I may have had my first word of mouth sale

Someone purchased using a discount code only sent to a few users and their email is not on that list

So someone must've given it to them

Really cool if true
December 5, 2025 at 4:00 PM
Latest YT video did alright

Most views are existing subscribers

Which is great, but I want to reach more new viewers too
December 5, 2025 at 11:02 AM
YT channel views are also down in the last 90 days

This is mostly due to not uploading videos

I was too busy filming 129 videos for Cosden Code

Time to give YT some more attention
December 4, 2025 at 4:04 PM
Ok so sales have definitely slowed down after Black Friday launch

That's expected and I'm not mad about it

I'm playing the long game

Time to make great YT videos again
December 4, 2025 at 11:04 AM
MRR is slowly growing

I'm not looking for a fast spike. I'm playing the long game

I want Cosden code to still be relevant and successful in 5 years
December 3, 2025 at 11:00 AM
I've been really happy with @polar_sh as my MoR for Cosden Code

The Black Friday launch was super successful and there have been no issues

Customer support is great too

I highly recommend them if you're launching a SaaS
December 2, 2025 at 3:58 PM
Recently crossed 100 users and 5k XP on Cosden Code!

That's 100+ devs taking their React success in their own hands
December 2, 2025 at 2:12 PM
Introducing Cosden Code!

This is the ultimate learning platform for full-stack React

Interactive courses and guided projects on JS/TS, React, Redux, Zustand, React Router, Tanstack Router, Next.js, and more!

In-depth video lessons, integrated IDE, and an AI mentor

Details 👇
December 1, 2025 at 4:15 PM
I'm realizing a lot of developers don't fully understand how React works

Even when I make videos showing how it is, and using the official docs as support, they still don't get it

So here's a couple of the most important things you need to know about how React works
October 28, 2025 at 11:00 AM
Today I start filming the "React Fundamentals" course on Cosden Code

This will cover all the essentials like JSX, components, state, hooks, etc

It won't cover 3rd party libraries (RQ, forms, state management) since those will be in other courses

What topics do you want to see?
October 27, 2025 at 11:01 AM
Just added the first video lessons to my new platform Cosden Code (coming soon)

The videos are SO GOOD. Literally my best work

First course is on design patterns in React, and I promise you, you haven't seen most of these patterns

I'm beyond excited to launch this
October 24, 2025 at 9:56 AM
In React, the smaller your components are, the better

Building small components makes your apps simple, maintainable, and scalable

You can still have complexity, but it will be much easier to manage with small pieces

The best code is simple code
October 23, 2025 at 9:57 AM
I'm currently trying out Windsurf coming from Cursor

First impressions, it's mostly the same, but the tab complete is inferior

You really feel it when trying to tab complete a lot of files

Pricing is better though so idk
October 22, 2025 at 3:02 PM
React tip for state updates

Instead of:
setCount(count + 1)

Do:
setCount(prev => prev + 1)

The function version always gets the current state. Helps avoid bugs with stale values
October 20, 2025 at 10:04 AM
Quick debugging tip for React devs

Instead of:
console.log(user)
console.log(posts)

Do this:
console.log({ user, posts })

You get labeled output in the console. Makes it way easier to track what's what when you have multiple logs
October 17, 2025 at 10:04 AM
One of the weirdest patterns in React is the abandon render pattern

This is when you call a state updater function directly in the body of the component as its rendering

React will abandon the render and start again with a new value

Here's an example
October 16, 2025 at 10:04 AM
When I use AI to code, it either helps me solve a very specific hard bug or it helps me not have to write a bunch of new code that follows the same patterns

Outside of that, it just gets in my way

No matter the model or the tool that I use
October 15, 2025 at 2:56 PM
React 19.2 just introduced the useEffectEvent hook

This hook finally fixes one of the biggest problems that developers face when it comes to effects and dependency arrays

Finally, we can put this issue to rest and focus on shipping actual features

Here's how it works
October 15, 2025 at 9:56 AM
So are we all moving away from Next.js now?
October 14, 2025 at 2:57 PM
I'm currently filming a course on design patterns in React

This is by far the best course on this topic. Nothing else compares

Most other articles/courses repeat the same 5 outdated patterns over and over again

My course goes deep, and shows you patterns you can use today
October 3, 2025 at 9:58 AM
You can figure out almost anything if you just keep trying long enough

Most developers quit right before they would have succeeded

The difference isn't talent, it's just staying in the game a bit longer
October 2, 2025 at 10:04 AM
If you're using functions in your React components, then this is the best pattern that you can use

It gives you all of the benefits of a reusable function, while keeping the flexibility of how you might use it

Here's the code:
October 1, 2025 at 10:04 AM