PSA: You probably aren't using PropertyKey enough.
It represents any valid key in JavaScript: string, number or symbol.
And it's globally available in every TS project.
React Server Components allow you to call your database directly from a component.
And that's great... but how do we make sure this code never ever runs on the client?
@cnakazawa I recommend `Find and Transform`
Do a Global search: .tsx file with `useEffect`
Run `Find and Transform` from the action menu.
This moves the list of result files to the files to include filter.
Do a second search, maybe `useState`
Repeat as needed
https://t.co/Jmxkinvi7K
@lzsthw Is it the distinction between writing code and developing software? One is placing words on paper and the other is knowing what makes the book/application compelling to the reader/user, purchaser, and the entity paying to have it published betting on a profit.
I ownLRubythw!
If you use React, you should be using a React framework. If your existing app doesn't use a framework, you should incrementally migrate to one. If you're creating a new React project, you should use a framework from the beginning.
Do you sit at a computer for longer than 6 hours a day?
You’re destroying your body if so.
Here’s the setup you need to protect yourself from posture problems and crippling long-term injuries:
🧵