Articles

Some of my thoughts on Javascript, CSS, and React

@Container queries

Container queries are a new feature that allow you to query the size of a container. This is useful for creating responsive components that can adapt to the size of their container.

Prisma: `findUnique` over `findFirst`

findUnique > findFirst in Prisma ORM when working with PostgreSQL depends on the specific requirements of your query. For direct, unique identifier-based retrievals, findUnique is the preferred method due to its efficiency and clarity.

React: Form Example

Create a simple form in react where form state is controlled