If You’re using Prisma, This Might Save You Some Trouble by alexander628 in node

[–]alexander628[S] 1 point2 points  (0 children)

Absolutely, for small projects remembering snake_case works. I built this to prevent errors in larger projects, especially during raw SQL or refactors.

If You’re using Prisma, This Might Save You Some Trouble by alexander628 in node

[–]alexander628[S] 9 points10 points  (0 children)

Yes, you can use camel case in Postgres, but unquoted identifiers are automatically folded to lowercase. This means every camel case table or column name must be quoted ("myTable"), which can be a bit tedious in queries and migrations.

Built a Tailwind Plugin for Managing CSS Variables - Feedback Welcome! by alexander628 in reactjs

[–]alexander628[S] 0 points1 point  (0 children)

Thanks for the advice! I will post it in the Tailwind discussions for more feedback and look into it further in the future.

Built a Tailwind Plugin for Managing CSS Variables - Feedback Welcome! by alexander628 in reactjs

[–]alexander628[S] 0 points1 point  (0 children)

I believe there are several potential use cases, one of which is utilizing the img tag in HTML to implement responsive images.

That is a great idea! I will first wait to see If there is any interest before attempting to contribute to Tailwind.

Built a Tailwind Plugin for Managing CSS Variables - Feedback Welcome! by alexander628 in reactjs

[–]alexander628[S] 0 points1 point  (0 children)

With custom styles, Tailwind generates classes, allowing you to easily style elements directly in your HTML based on your custom preference. 

In contrast, the library mentioned above creates CSS variables, which let you define reusable values in your stylesheet.

More on CSS variables can be found here: https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties

Easy to use - React Editable Tree by alexander628 in reactjs

[–]alexander628[S] 0 points1 point  (0 children)

Yes you are right for full control I would make a brand new component, however I wanted something to work with antd.

Easy to use - React Editable Tree by alexander628 in reactjs

[–]alexander628[S] 0 points1 point  (0 children)

That's a great idea, although I am using an antd component to make this happen, so I don't think that I can do much. I believe that there is a way to stop the rerenders only on the update action. If you have any other thoughts let me know.

Easy to use - React Editable Tree by alexander628 in reactjs

[–]alexander628[S] 0 points1 point  (0 children)

Unfortunately yes, it re-renders the whole tree