Skip to content

Conversation

@godnondsilva
Copy link
Contributor

@godnondsilva godnondsilva commented Mar 20, 2024

Problem Description

If the user does not pass any custom props, then the generated code will have an extra comma (,)
Example:

Button.mist.css

@scope (.button) {
  button:scope {
    /* Default style */
    font-size: 1rem;
    border-radius: 0.25rem;
  }
}

Button.mist.tsx

export function Button ({ className, , ...props }: Props) {

Video Explanation

IMAGE ALT TEXT HERE
Timestamp: 3:32 - 3:52
Credits: Josh tried coding

@typicode typicode merged commit 173e593 into typicode:main Mar 21, 2024
@typicode
Copy link
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants