| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| button: { | ||
| color: "red", | ||
| }, | ||
| specialButton: { |
There was a problem hiding this comment.
why is this an improvement? .specialButton targets a class, and specialButton targets a nonexistent tag name. did you mean 'button.specialButton'?
Sorry, something went wrong.
There was a problem hiding this comment.
specialButton in the second is just a property to styles. It is not a class we pass it using styles.specialButton. It is a css-in-js syntax
Sorry, something went wrong.
There was a problem hiding this comment.
can you elaborate? I’m not familiar with any css-in-js solution that conflates tag names and class names in this way.
Sorry, something went wrong.
| button: { | ||
| color: "red", | ||
| }, | ||
| specialButton: { |
There was a problem hiding this comment.
| specialButton: { | |
| 'button.specialButton': { |
Sorry, something went wrong.
| buttonActive: { | ||
| color: "green", | ||
| }, | ||
| buttonInactive: { |
There was a problem hiding this comment.
again, should these be class names?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.