We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<div {property} />
In Mint, to pass a bunch of property variables to a component, you have to list out the key/value for each one.
component Main { fun render : Html { let disabled = false let onClick = (e : Html.Event) { "" } <button disabled={disabled} onClick={onClick}/> } }
This can get cumbersome and noisy when you have many props.
It would be nice if Mint had the ability to do shorthand properties (like in Svelte)
component Main { fun render : Html { let disabled = false let onClick = (e : Html.Event) { "" } <button {disabled} {onClick} /> } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In Mint, to pass a bunch of property variables to a component, you have to list out the key/value for each one.
This can get cumbersome and noisy when you have many props.
It would be nice if Mint had the ability to do shorthand properties (like in Svelte)
The text was updated successfully, but these errors were encountered: