News for hackers. Stuff that matters.

errnesto

Show HN: Eszett explicit scopes for styling react components

https://github.com/errnesto/eszett

Hello HN :-) I built "eszett" a small plugin to help manage scoped CSS in React, especially with server components in mind. It’s heavily inspired by styled-jsx. It always bugged my that I can not access the class names, that styled-jsx generates, in my code.So the core idea is simple: eszett generates a unique class name for each component (like styled-jsx) but then lets you access those class...

( Read More... | no comments | on HN )
Re:Never Use a Warning When You Mean Undo (2007) on Sunday May 26, 2024 @07:50AM (#40481441)
My first thought was “yeah but there are also things you can not undo like sending e-mail” but then I remembered there is a really nice undo send button now (that works by delaying the send a bit).

Sure there are things you can not undo, sometimes you do want to permanently delete something, but maybe with a bit of thinking a undo is feasible more often then one might think :-)

Re:WordPress’ market share is shrinking on Thursday May 12, 2022 @04:29AM (#31350826)
I can second that. Customers really love the very simple and clean UI and I love the Developer experience :-)

But yes it would not be a replacement for WordPress if you want to click together a site with themes and plugins

Re:Parse, Don't Validate (2019) on Saturday June 26, 2021 @04:33AM (#27640197)
For js / typescript I like: https://github.com/paperhive/fefe

basically ist’s just functions that take a value of one type and return a other one

Especially in german where “You must not“ reads very similar to “Du musst nicht“

Which means “You don’t have to”

“Yo must” could be correctly translated to “Du musst” though...

The rki (they are the ones tracking Infektion Numbers etc here in germany) is apperently Building an App based on Trace Together. This (german) article says TraceTogether is linked to your phone number though https://www.golem.de/news/corona-app-per-bluetooth-kontaktpe...
“This raises a lot of interesting questions about cash vs. cashless societies, and how in times of protest people may drastically adjust their usual economic behaviour.”

Also what happens when you dont have the option to “adjust your behavior”? Like at least in Germany payments above some amount I don’t remember can not legally be paid in cache.

Re:Why Do Buses Bunch? on Wednesday April 03, 2019 @06:13AM (#19562154)
Then you could get out at the current stop and let the next bus take you to the next one. I've seen this in New York where trains become 'express trains' Im shure other cities do this too.
I would say the nice thing here is the type system.

I always use `null` to differentiate between an empty list or string and nothing.

I like when I have a type system that ensures I check for null etc. But I only work on very small projects so this works well in js for me as well.

Re:Why Technology Will Never Fix Education on Wednesday May 27, 2015 @01:40PM (#9613032)
Thanks