Any CSS-in-JS solutions suitable for Vue 3 with JSX? #12173
Nelk98
started this conversation in
General Discussions
Replies: 2 comments
-
<script lang="tsx">
import { defineComponent, ref } from 'vue';
export default defineComponent(() => {
const count = ref(4);
const inc = () => (count.value += 1);
return () => (
<button class="my-button" onClick={inc}>
script {count.value}
</button>
);
});
</script>
<style scoped>
.my-button {
color: darkcyan;
background-color: azure;
}
</style> |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @Nelk98 , Here are a few CSS-in-JS solutions suitable for Vue 3 with JSX, along with brief examples:
These examples illustrate how to implement CSS-in-JS solutions in a Vue 3 application using JSX. Thanks . |
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
-
RT
Beta Was this translation helpful? Give feedback.
All reactions