Better HN
topnewbestaskshowjobs
Log inSign up

zoontek

11 karma · joined Jul 7, 2016 (10y ago) · 9 submissions

Submissions

comment 2y ago · link · parent

Stars don't mean usage.

Remix has 21,375 downloads per week according to npm. Next has 6,562,587.

comment 4y ago · link · parent

Shameful ad for our own router: https://swan-io.github.io/chicane, with type-safe route consumption and creation (and other goodies).

No weirdness or magic API, the useRoute hook just return a discriminating union with typed params. It's fully-featured and used in prod.

The API is quite simple:

const Router = createRouter({ UserDetail: "/users/:userId" });

Router.UserDetail({ userId: "xxx" }); // safe

comment 4y ago · link · parent

1. Stop shipping open source libs for a bit, focus on maintenance of the existing ones

2. Ship a SaaS I started working on

3. Improve my sleep

4. Improve my cooking skills

5. Read more books

6. Watch fewer, but better movies

7. Make a few talks

9. Spend more time with my family / my friends. Spend less with the kind who are not really your friends after all

10. Disconnect even more from social medias

11. Learn something new (could be anything)

comment 5y ago · link · parent

No, you are right. Flutter isn't really native since it uses Skia to render native platform look-alike components (as opposed to react-native which really use the platform)

comment 5y ago · link · parent

I wrote a lib with a very similar API: https://github.com/zoontek/react-atomic-state

It rely on https://github.com/facebook/react/tree/master/packages/use-s..., which make it safe to use in concurrent mode and the implementation a lot simpler.

comment 6y ago · link · parent

Might not be the best, but the ones I use:

For REST API: https://mockoon.com/

For GraphQL: https://github.com/APIs-guru/graphql-faker

comment 6y ago · link · parent

This article is wrong about React: it does not generates unreadable CSS class names. CSS in JS libraries do.

By default, using only react + react-dom, you can achieve the exact same output as "handwritten HTML + CSS".

But CSS in JS is not bad either: it generates unique class names by using murmurhash on rules and it makes a lot of sense in a component approach (you can see it like an automatic BEM method).

Even better: The main pain point of this approach (runtime cost) will soon entirely disappear. Linaria already provides a solution, Facebook will soon roll is own (called StyleX for now). It will create a stylesheet file with atomic CSS rules (one rule per class) and replace the classNames directly at compilation time, offering deduplication, eliminates of dead code and maintenability without sacrificing performances. IMHO a huge step in CSS development.

8.

Reason React Native(reasonml-community.github.io ↗)

5 points · by zoontek · 7y ago · discuss

9.

React-native-languages, a React Native lib to handle device languages(github.com ↗)

3 points · by zoontek · 9y ago · discuss