Amazing project, why so little traction? #213
maxgurewitz
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @maxgurewitz, thanks for your kind feedback! I think you correctly identified the main advantages of this approach. As for the "catch", a couple of limitations are explained on the FAQ. Aside than those, no one has brought any significant issues to my attention. You may be interested to know that I'm working on v3 at the moment, which will be simpler and indeed more composable. v2: <button
style={css({
color: "black",
on: ($, { or }) => [
$(or("&:hover", "&:focus"), {
color: "blue"
}),
$("&:active", {
color: "red"
}),
$("&:disabled", {
color: "gray"
})
]
})}>
Click me
</button> v3: <button
style={pipe(
{
color: "black"
},
on(or("&:hover", "&:focus"), {
color: "blue"
}),
on("&:active", {
color: "red"
}),
on("&:disabled", {
color: "gray"
})
)}>
Click me
</button> v3 - pipeline operator (someday?): <button
style={
{
color: "black"
}
|> on(or("&:hover", "&:focus"), {
color: "blue"
})
|> on("&:active", {
color: "red"
})
|> on("&:disabled", {
color: "gray"
})
}>
Click me
</button> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there! This is an amazing project! It seems to solve the problem of:
In contrast, your project is purely runtime, not requiring a build time step, yet is compatible with react server components. What's the catch? Why does this project have so little attention?
Beta Was this translation helpful? Give feedback.
All reactions