orenelbaum / babel-plugin-solid-undestructure

A Babel plugin for SolidJS that allows you to destructure component props without losing reactivity.
95 stars 3 forks source link

The default object parameter is not supported? #1

Closed russelgal closed 2 years ago

russelgal commented 2 years ago

const Range: Component = ({ min=15, max=55 }={}) => {...}

orenelbaum commented 2 years ago

Good point. It's not supported but I'll start working on it. I'm glad to see someone is actually using this plugin 😄 Please let me know if you encounter any other issues.

orenelbaum commented 2 years ago

Done 😎