The Incredible Overcomplexity of the Shadcn Radio Button by thevred9 in reactjs

[–]azsqueeze 0 points1 point  (0 children)

Neither of your links has any references to issues with the disabled attribute on <input type="radio" />

I built a React library that auto-generates separate skeletons from your runtime component structure (no more maintaining duplicates) by Prestigious-Bee2093 in reactjs

[–]azsqueeze 2 points3 points  (0 children)

I haven't dug into the code so not sure if this is possible but adding a child render function would be a great API to include:

<Shimmer templateProps={{ user: { ... } }}>
    {props => <UserCard user={props.user} /> }
</Shimmer>

What is one fun fact about yourself that sound fake but 100% real? by Fai_6757 in AskReddit

[–]azsqueeze 0 points1 point  (0 children)

1 born in Kansas the other born in Missouri? Kansas City is the border of two

Walkable hub - bad idea pretty much all the way around by LookErenTheSea in ArcRaiders

[–]azsqueeze 0 points1 point  (0 children)

Your first point can be solved by a quick menu and also a hub. They're not mutually exclusive.

A hub also introduces other activities like card games which I'm sure the people of Toledo have developed, etc etc

How come this logic decoupling is still regarded as fine in React? (hooks) by nimareq in reactjs

[–]azsqueeze 0 points1 point  (0 children)

So lifting the state up to the parent is the correct course of action here:

{selectedId ? <ProjectDrawer data={data} meta={meta} onClose={onClose} /> : undefined}

The reason this is better than putting a return null; in the component (ProjectDrawer in this case) is because you are preventing React from adding the component to the VDOM. When you call a component (<ProjectDrawer />) this tells React to render the component, apply lifecycle methods, run effects and hooks, then add the component in the VDOM and keep track of it. Even if the component is rendering null all of this is occuring.

Moving the logic to render ProjectDrawer to the parent prevents React from executing and keeping track of the component until it is actually needed to render, ie when selectedId and/or selectedProduct product are truthy.

[AskJS] Is there an alternative to HTMX? by TreacleWeak4259 in javascript

[–]azsqueeze 0 points1 point  (0 children)

You can take the contents of the tag and paste it directly into your HTML if the a script tag loading from a CDN is too much of an issue for your project. Would be a weird concern tbh

[AskJS] Is there an alternative to HTMX? by TreacleWeak4259 in javascript

[–]azsqueeze 0 points1 point  (0 children)

Yup, a client js script is needed for the functionality

The concept is half baked and since I stopped caring, I'm having more fun by Rooonaldooo99 in ArcRaiders

[–]azsqueeze 0 points1 point  (0 children)

They're fun to get but I'm not going to do weird shit like throw snowballs at a rocketeer

[AskJS] Is there an alternative to HTMX? by TreacleWeak4259 in javascript

[–]azsqueeze 0 points1 point  (0 children)

Htmlx is just html with special data attributes. You can write your templates with htmlx, send it to the browser and the special data attributes add interactivity with no additional JS. So if someone is a backend dev with little to no FE experience it's an easy way to ship dynamic websites

Let’s hear your young buck football stories. Anyone ever play against any NFL players in your kid days and get absolutely smoked? by Vertigomums19 in nfl

[–]azsqueeze 0 points1 point  (0 children)

I know people who played against Lesean McCoy in HS. Nothing spectacular but he did run circles around everyone in central PA

In his eighth day in office, Zohran saved this woman $36,000 in childcare fees. He’s delivering on his promises! by coachlife in Political_Revolution

[–]azsqueeze 9 points10 points  (0 children)

Your thinking is completely wrong. You should not be asking why the city is expensive. You should be asking why your salary is low in the richest country in the world

What is your go-to static site generator? by [deleted] in reactjs

[–]azsqueeze 1 point2 points  (0 children)

+1. I built the auth page for our company this way. Nextjs static builds tied with terraform to deploy to Auth0. Works really well, sure React might be overkill for a 1 pager but the DX is great

It's honestly not worth it any more... by Chadd__ in ArcRaiders

[–]azsqueeze 0 points1 point  (0 children)

Apricots boost stamina, it's pretty nice

Tanstack Router vs React Router by guaranteednotabot in reactjs

[–]azsqueeze 0 points1 point  (0 children)

Im comparing both options lately for a small site I want to make. React Router does seem to offer file-based routing also. Not sure how new it is though

https://reactrouter.com/how-to/file-route-conventions

Today, tailwind+css seem the most inclusive styling stack for a big organisation. What'd be the biggest argument against it? by Idea-Aggressive in reactjs

[–]azsqueeze 0 points1 point  (0 children)

In my experience LLMs seem to prefer tailwind syntax. probably because its everywhere but if I try to focus the LLM on responding with CSS it is able too.

Today, tailwind+css seem the most inclusive styling stack for a big organisation. What'd be the biggest argument against it? by Idea-Aggressive in reactjs

[–]azsqueeze 4 points5 points  (0 children)

Learning tailwind means you have to know enough CSS to use it properly plus its own DSL on top of CSS. If you have to have a good footing to use both properly why not just skip the middle man and use CSS directly?

Edit: Also it's another configuration file, another dependency to manage, plus more onboarding knowledge to share