Replies: 2 comments
-
Vue 3.5 just got something similar in their compiler to make destructing nicer "Reactive Props Destructure" - https://blog.vuejs.org/posts/vue-3-5 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This comes up every few months. Last time was here: #2152 (comment) I've given the same answer for the past 6 years and haven't really changed it. People have made compilers on top of Solid that do this but it isn't something that makes sense to do. Read the other thread for more details. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the least ergonomic and jarring aspects for beginners of Solid compared to React is prop spreading and default assignment. Even if we know about the rules, using
splitProps
andmergeProps
is more verbose and unpleasant.I wonder if you considered compiling it away:
The compiler could change this to:
Beta Was this translation helpful? Give feedback.
All reactions