JavaScript Jabber cover image

React Server Components: Part 2- JSJ 583

JavaScript Jabber

CHAPTER

How to Use Typescript in Your Development Environment

It's really not so much about when you look at the file it shouldn't really matter from a react perspective like where does it run. It's more like working with types because when you make a mistake you get immediate feedback on what the mistake is. With server-only logic you know if you kind of like have a database call well your bundle is just not gonna let you import like MongoDB on the client because it's not gonna letting you bundle it. You can use it to gate features which you want to do not leak the fact that they exist but as long as you only like get to you know you add server only so that you don't mess it up accidentally and like put

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner